Skip to content

Instantly share code, notes, and snippets.

@kylewm
Last active April 19, 2017 09:19
Show Gist options
  • Save kylewm/7d8cbc9a72984d67c646 to your computer and use it in GitHub Desktop.
Save kylewm/7d8cbc9a72984d67c646 to your computer and use it in GitHub Desktop.
my Known configuration for nginx
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;
}
}
@trilliums
Copy link

Do you happen to have nginx configs like this for Known in a subdirectory?

@kylewm
Copy link
Author

kylewm commented Jan 29, 2016

I had a mostly working subdirectory config going here: https://gist.github.com/kylewm/79c28695d3ff981b2cf3

@ietuday
Copy link

ietuday commented Apr 19, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment