Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Created October 31, 2011 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ivoz/1327626 to your computer and use it in GitHub Desktop.
Save Ivoz/1327626 to your computer and use it in GitHub Desktop.
server {
set $domain home;
server_name ~^((?<domain>.+)\.)localhost$;
listen 127.0.0.1:80;
root /home/ivo/www/$domain/public_html;
index index.php index.html;
error_log /home/ivo/www/$domain/error.log;# debug;
access_log /home/ivo/www/$domain/access.log;
location ^~ /phpmyadmin {
root /usr/share;
allow 127.0.0.1;
deny all;
include conf.d/php;
}
include conf.d/php;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment