Hi All,
I am updating a server and also trying to work with jail.
The problem I am trying to solve is the static files. I can see several 404 for js and css files on chrome console. The files exist and I tried to install previous versions of php72 and wordpress 5.0 still same issue.
No Css/Js on wordpress pages frontend. The backend has few css styles but they do not come from js or css files.
I am following this tutorial about Multiple Jails https://www.freebsd.org/doc/en/books/handbook/jails-application.html
The server is an ec2 instance. I have separate jails for:
Checked the Wordpress permissions files/dir and also owner:group (www)
Here is my Nginx.conf today
How can I serve the wordpress css/js files from WP/Php Jail?
Thanks
Edit: typo.
I am updating a server and also trying to work with jail.
The problem I am trying to solve is the static files. I can see several 404 for js and css files on chrome console. The files exist and I tried to install previous versions of php72 and wordpress 5.0 still same issue.
No Css/Js on wordpress pages frontend. The backend has few css styles but they do not come from js or css files.
I am following this tutorial about Multiple Jails https://www.freebsd.org/doc/en/books/handbook/jails-application.html
The server is an ec2 instance. I have separate jails for:
- Php73 and Wordpress 5.1
- Nginx 1.14
- MySql Server 80
Checked the Wordpress permissions files/dir and also owner:group (www)
Here is my Nginx.conf today
Code:
user www;
worker_processes 1;
error_log /var/log/nginx-error.log;
events {
worker_connections 2000;
}
http {
include mime.types;
default_type application/octet-stream;
upstream php {
server [2600:1f1e:cb6:7700:6aeb:df8f:e1ec:d0e3]:9000;
}
sendfile on;
keepalive_timeout 65;
server {
listen 172.30.0.49:80;
listen [2600:1f1e:cb6:7700:766c:545d:beab:2547]:80;
server_name ec2.ip ;
root /usr/local/www;
index index.php;
server_tokens off;
location / {
try_files \$uri \$uri/ /index.php?\$args;
}
location ~ \.php$ {
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
How can I serve the wordpress css/js files from WP/Php Jail?
Thanks
Edit: typo.