Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Ivoz / home
Created October 31, 2011 15:14
server {
server_name www.*;
rewrite ^www\.(.+)$ $1$request_uri? redirect;
}
server {
server_name ~^(?<domain>.+)\.localhost$;
listen 127.0.0.1:80;
2011/10/31 20:40:32 [error] 13880#0: *26 rewrite or internal redirection cycle while internal redirect to "/index.html", client: 127.0.0.1, server: localhost, request: "GET /phpmyadmin HTTP/1.1", host: "localhost"
2011/10/31 20:40:32 [error] 13880#0: *27 rewrite or internal redirection cycle while internal redirect to "/index.html", client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost"
2011/10/31 20:59:09 [error] 14227#0: *34 rewrite or internal redirection cycle while internal redirect to "/index.html", client: 127.0.0.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "localhost"
@Ivoz
Ivoz / home
Created October 31, 2011 10:47
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home;
index index.php index.html;
error_log /home/ivo/www/errors/home.log;
access_log /home/ivo/www/access/home.log;
@Ivoz
Ivoz / home
Created October 31, 2011 11:32
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 12:27
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 12:37
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 13:41
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 13:44
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;
@Ivoz
Ivoz / home
Created October 31, 2011 13:59
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home/public_html;
index index.php index.html;
error_log /home/ivo/www/home/error.log;# debug;
access_log /home/ivo/www/home/access.log;