-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,59 @@ | ||
server { | ||
server | ||
{ | ||
listen 80; | ||
server_name localhost; | ||
index index.html index.htm index.php; | ||
""""""root E:/my/EasySrv/extra/win32/core/www/localhost; | ||
root /Applications/EasySrv/www/localhost; | ||
|
||
autoindex on; | ||
autoindex on; | ||
|
||
#301_START | ||
#301_END | ||
#PHP_START | ||
include php/php-7.4.conf; | ||
#PHP_END | ||
|
||
#HTTP_TO_HTTPS_START | ||
#HTTP_TO_HTTPS_END | ||
#301_START | ||
#301_END | ||
|
||
#SSL_START | ||
#SSL_END | ||
#HTTP_TO_HTTPS_START | ||
#HTTP_TO_HTTPS_END | ||
|
||
|
||
#REWRITE_START 引用url重写规则 | ||
#SSL_START | ||
#SSL_END | ||
|
||
#REWRITE_START | ||
include vhosts/rewrite/localhost.conf; | ||
#REWRITE_END | ||
|
||
#PHP_START | ||
include php/php-7.4.conf; | ||
#PHP_END | ||
|
||
#PHPMYADMIN_START | ||
location /phpmyadmin { | ||
""""""root E:/my/EasySrv/extra/win32/core/www/localhost; | ||
index index.php; | ||
include php/php-7.4.conf; | ||
include phpmyadmin-static.conf; | ||
} | ||
#PHPMYADMIN_END | ||
#EXTRA_INFO_START | ||
#{"allowSyncHosts":true} | ||
#EXTRA_INFO_END | ||
|
||
#DENY_FILES_START | ||
#DENY_FILES_START | ||
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) | ||
{ | ||
return 403; | ||
} | ||
#DENY_FILES_END | ||
|
||
location ~ .+\.(gif|jpg|jpeg|png|bmp|swf)$ | ||
{ | ||
expires 1d; | ||
error_log off; | ||
access_log off; | ||
} | ||
|
||
location ~ .+\.(js|css)$ | ||
{ | ||
expires 1h; | ||
error_log off; | ||
access_log off; | ||
} | ||
#DENY_FILES_END | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
location ~ .+\.(gif|jpg|jpeg|png|bmp|swf)$ | ||
{ | ||
expires 1d; | ||
error_log off; | ||
access_log off; | ||
} | ||
|
||
location ~ .+\.(js|css)$ | ||
{ | ||
expires 1h; | ||
error_log off; | ||
access_log off; | ||
} | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
access_log logs/localhost.access.log; | ||
error_log logs/localhost.error.log; | ||
} | ||
access_log logs/localhost.access.log; | ||
error_log logs/localhost.error.log; | ||
} |