Skip to content

Instantly share code, notes, and snippets.

@hiddenl00p
hiddenl00p / nginx.conf
Created January 30, 2016 12:28
Laravel Forge WordPress nginx.conf
# Redirect everything to the main site. We use a separate server statement and NOT an if statement - see http://wiki.nginx.org/IfIsEvil
server {
server_name _;
rewrite ^ $scheme://sitename.com$request_uri redirect;
}
server {
listen 80;
server_name sitename.com;
gjhkgjj