Created
July 13, 2017 08:11
-
-
Save Maksclub/e3769dead2f24d3cd9f7c03e92c5945a to your computer and use it in GitHub Desktop.
This file contains 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 { | |
listen 80; | |
server_name makssite.loc; | |
root /home/m/PhpstormProjects/makssite/frontend/web; | |
index index.php; | |
access_log /home/m/PhpstormProjects/makssite/log/frontend-access.log; | |
error_log /home/m/PhpstormProjects/makssite/log/frontend-error.log; | |
location / { | |
# Redirect everything that isn't a real file to index.php | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
try_files $uri =404; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
} | |
server { | |
listen 80; | |
server_name makspassadmin.loc admin.makssite.loc; | |
root /home/m/PhpstormProjects/makssite/backend/web; | |
index index.php; | |
access_log /home/m/PhpstormProjects/makssite/log/backend-access.log; | |
error_log /home/m/PhpstormProjects/makssite/log/backend-error.log; | |
location / { | |
# Redirect everything that isn't a real file to index.php | |
try_files $uri $uri/ /index.php$is_args$args; | |
} | |
location ~ \.php$ { | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass unix:/run/php/php7.0-fpm.sock; | |
try_files $uri =404; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment