Advertisement
HashZayed

Untitled

Jul 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.82 KB | None | 0 0
  1. upstream inovace-client-api{
  2.         server 127.0.0.1:1990;
  3. }
  4.  
  5. upstream inovace-matador-api{
  6.         server 127.0.0.1:1991;
  7. }
  8.  
  9. upstream inovace-rapple-api{
  10.         server 127.0.0.1:28960;
  11. }
  12.  
  13. server {
  14.     listen 80;
  15.     listen [::]:80;
  16.  
  17. root /home/inovace-dev/inovace_client_panel/inovace-client-ng-web;
  18.  
  19. index index.html index.htm index.nginx-debian.html;
  20.  
  21. server_name client.local.inovacetech.com:90 www.client.local.inovacetech.com:90;
  22.  
  23.  location /inovace-client/api/v1 {
  24.                 proxy_pass http://inovace-client-api;
  25.         }
  26.  
  27.    location / {
  28.         try_files $uri $uri/ /index.html =404;
  29.         }
  30. }
  31.  
  32. server {
  33.     listen 80;
  34.     listen [::]:80;
  35.  
  36. root /home/inovace-dev/matador/inovace-matador-php;
  37.  
  38. index index.php index.html index.htm index.nginx-debian.html;
  39.  
  40.     server_name matador.local.inovacetech.com:90  www.matador.local.inovacetech.com:90;
  41.  
  42.  location /inovace-matador-api/v1 {
  43.                 proxy_pass http://inovace-matador-api;
  44.         }
  45.  
  46. location / {
  47.         rewrite ^/$ /index.php?page=home;
  48.         rewrite ^/([a-zA-Z0-9-]+)$ /index.php?urs1=$1;
  49.         rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2;
  50.         rewrite ^/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ /index.php?urs1=$1&urs2=$2&urs3=$3;
  51.         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;
  52.         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;
  53.     }
  54.     location = /adminpanel {
  55.         rewrite ^(.*)$ /adminpanel/index.php;
  56.     }
  57.  
  58.  
  59.     location ~ \.php$ {
  60.         include snippets/fastcgi-php.conf;
  61.  
  62.         fastcgi_pass 127.0.0.1:9000;
  63.     }
  64.  
  65.     # deny access to .htaccess files, if Apache's document root
  66.     # concurs with nginx's one
  67.     #
  68.     location ~ /\.ht {
  69.         deny all;
  70.     }
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement