Compare commits
2 Commits
79256e6eb3
...
e5b08eb1e7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5b08eb1e7 | ||
|
|
48c4daf05a |
1
config/nginx.d/htpasswd.pwd
Normal file
1
config/nginx.d/htpasswd.pwd
Normal file
@@ -0,0 +1 @@
|
||||
ventil:$apr1$vFjNGPce$OtpMrKeacOZoQnLFIZhCo.
|
||||
@@ -1,20 +1,36 @@
|
||||
server {
|
||||
listen 81 default_server;
|
||||
root /app;
|
||||
port_in_redirect off;
|
||||
absolute_redirect off;
|
||||
root /var/www;
|
||||
location / {
|
||||
gzip_static on;
|
||||
root /var/www/shitehost;
|
||||
index index.php index.html index.htm;
|
||||
# try_files $uri $uri/ /index.php$is_args$args;
|
||||
location /admin {
|
||||
auth_basic "Administrator’s Area";
|
||||
auth_basic_user_file conf.d/htpasswd.pwd;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
#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;
|
||||
# }
|
||||
#}
|
||||
|
||||
location ^~ /phpmyadmin/ {
|
||||
gzip_static on;
|
||||
alias /var/www/phpma/;
|
||||
index index.php;
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri = 404;
|
||||
fastcgi_pass phpmyadmin:9000;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user