-
-
Save Ivoz/1327824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name localhost; | |
rewrite ^ http://default.localhost$request_uri? redirect; | |
} | |
server { | |
server_name ~^(?<domain>.+)\.localhost$; | |
listen 127.0.0.1:80; | |
root /home/ivo/www/$domain; | |
index index.php index.html; | |
access_log /home/ivo/www/access.log; | |
error_log /home/ivo/www/error.log;# debug; | |
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