Skip to content

Instantly share code, notes, and snippets.

@kylewm kylewm/known-nginx-config
Last active Apr 19, 2017

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

trilliums commented Nov 8, 2015

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

@kylewm

This comment has been minimized.

Copy link
Owner Author

kylewm commented Jan 29, 2016

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

@ietuday

This comment has been minimized.

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
You can’t perform that action at this time.