mirror of https://git.envs.net/envs/ops.git
nginx: add usersite piuvas.envs.sh
This commit is contained in:
parent
c3b7791f45
commit
968d51e4e9
|
@ -0,0 +1,12 @@
|
|||
location ~ \.php$ {
|
||||
include fastcgi.conf;
|
||||
|
||||
fastcgi_index index.php;
|
||||
|
||||
if (!-f $request_filename) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/run/php/php-fpm-piuvas.sock;
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
### piuvas.envs.sh - local ###
|
||||
server {
|
||||
include snippets/listen_local_ssl.conf;
|
||||
include snippets/listen_ssl.conf;
|
||||
server_name piuvas.envs.sh;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include ssl/envs_sh_wild.conf;
|
||||
include snippets/local_ssl_header.conf;
|
||||
|
||||
root /home/piuvas/public_html/;
|
||||
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
try_files $uri.html $uri $uri/ /index.php?$args ;
|
||||
}
|
||||
|
||||
location /semaninha {
|
||||
include proxy_params;
|
||||
proxy_pass http://127.0.0.1:1337/;
|
||||
}
|
||||
|
||||
location /cgi-bin {
|
||||
gzip off;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
}
|
||||
|
||||
location ~ /restricted/ {
|
||||
auth_basic "Restricted Area";
|
||||
auth_basic_user_file /home/$user/.htpasswd;
|
||||
}
|
||||
|
||||
# include php and ssi
|
||||
include snippets/users/php_piuvas.conf;
|
||||
ssi on;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/user-sites-available/piuvas.envs.sh.conf
|
Loading…
Reference in New Issue