-
-
Save kylewm/7d8cbc9a72984d67c646 to your computer and use it in GitHub Desktop.
server { | |
listen 80; | |
root /home/vagrant/idno; | |
index index.php; | |
server_name vagrant.dev; | |
location ~ (\.ini|known.php)$ { | |
deny all; | |
} | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
} | |
} | |
I had a mostly working subdirectory config going here: https://gist.github.com/kylewm/79c28695d3ff981b2cf3
Hi Guys,
I was running four node servers using
Configuring multiple applications on same port using nginx reverse proxy based on request urls
its working but the bundles files cannot loaded. I am stuck. Please Help
on Browser Console
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/inline.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/scripts.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/vendor.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/main.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost/styles.bundle.css Failed to load resource: the server responded with a status of 404 (Not Found)
Do you happen to have nginx configs like this for Known in a subdirectory?