Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream inovace-client-api{
- server 127.0.0.1:1990;
- }
- upstream inovace-matador-api{
- server 127.0.0.1:1991;
- }
- upstream inovace-rapple-api{
- server 127.0.0.1:28960;
- }
- server {
- listen 80;
- listen [::]:80;
- root /home/inovace-dev/inovace_client_panel/inovace-client-ng-web;
- index index.html index.htm index.nginx-debian.html;
- server_name client.local.inovacetech.com:90 www.client.local.inovacetech.com:90;
- location /inovace-client/api/v1 {
- proxy_pass http://inovace-client-api;
- }
- location / {
- try_files $uri $uri/ /index.html =404;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- root /home/inovace-dev/matador/inovace-matador-php;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name matador.local.inovacetech.com:90 www.matador.local.inovacetech.com:90;
- location /inovace-matador-api/v1 {
- proxy_pass http://inovace-matador-api;
- }
- location / {
- rewrite ^/$ /index.php?page=home;
- rewrite ^/([a-zA-Z0-9-]+)$ /index.php?urs1=$1;
- rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2;
- rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2&urs3=$3;
- rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2&urs3=$3&urs4=$4;
- rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2&urs3=$3&urs4=$4&urs5=$5;
- }
- location = /adminpanel {
- rewrite ^(.*)$ /adminpanel/index.php;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass 127.0.0.1:9000;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement