26 lines
670 B
Nginx Configuration File
Executable File
26 lines
670 B
Nginx Configuration File
Executable File
server {
|
||
listen 81 default_server;
|
||
root /app;
|
||
index index.php index.html index.htm;
|
||
location ~ \.php$ {
|
||
fastcgi_pass php:9000;
|
||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
include fastcgi_params;
|
||
}
|
||
location /admin {
|
||
auth_basic "Administrator’s Area";
|
||
auth_basic_user_file conf/htpasswd;
|
||
|
||
}
|
||
}
|
||
#server {
|
||
# listen 82 default_server;
|
||
# root /app/master/www;
|
||
# index index.php index.html index.htm;
|
||
# location ~ \.php$ {
|
||
# fastcgi_pass php:9000;
|
||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
# include fastcgi_params;
|
||
# }
|
||
#}
|