Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############## nginx for dealer portal ################
- server {
- listen 80;
- server_name dealer-portal.dev;
- root /var/www/dealer-portal/App/webroot/;
- access_log /var/log/nginx/dealer-portal.access.log;
- error_log /var/log/nginx/dealer-portal.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 10s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############## nginx for account.dealer portal ################
- server {
- listen 80;
- server_name accounts.dealer-portal.dev;
- root /var/www/dealer-portal/accounts/webroot/;
- access_log /var/log/nginx/dealer-portal_accounts.access.log;
- error_log /var/log/nginx/dealer-portal_accounts.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 3s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- #################### store.dealer-portal.dev ####################
- server {
- listen 80;
- server_name store.dealer-portal.dev;
- root /var/www/dealer-portal/store/webroot;
- access_log /var/log/nginx/dealer-portal_store.access.log;
- error_log /var/log/nginx/dealer-portal_store.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 30s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############## nginx for account.dealer-presentation.dev ################
- server {
- listen 80;
- server_name accounts.dealer-presentation.dev;
- root /var/www/dealer-presentation/accounts/webroot/;
- access_log /var/log/nginx/dealer-presentation_accounts.access.log;
- error_log /var/log/nginx/dealer-presentation_accounts.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 3s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############## nginx for app.dealer-presentation.dev ################
- server {
- listen 80;
- server_name app.dealer-presentation.dev;
- root /var/www/dealer-presentation/app/webroot/;
- access_log /var/log/nginx/dealer-presentation_app.access.log;
- error_log /var/log/nginx/dealer-presentation_app.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 60s; # default of 60s is just too long
- fastcgi_read_timeout 100s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############### Vartual Host for dealer portal (KB) #######################
- server {
- listen 80;
- server_name kb.dealer-portal.dev;
- root /var/www/dealer-portal/kb/webroot/;
- access_log /var/log/nginx/kb-dealer-portal.access.log;
- error_log /var/log/nginx/kb-dealer-portal.dev.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 3s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############### Vartual Host for dealer portal (Blog) #######################
- server {
- listen 80;
- server_name blog.dealer-portal.dev;
- root /var/www/dealer-portal/blog/webroot/;
- access_log /var/log/nginx/blog-dealer-portal.access.log;
- error_log /var/log/nginx/blog-dealer-portal.dev.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 3s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
- ############### Vartual Host for dealer portal (FAQs) #######################
- server {
- listen 80;
- server_name faq.dealer-portal.dev;
- root /var/www/dealer-portal/faq/webroot/;
- access_log /var/log/nginx/faq-dealer-portal.access.log;
- error_log /var/log/nginx/faq-dealer-portal.dev.error.log;
- location / {
- index index.php;
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.php/?(.*)$ {
- fastcgi_connect_timeout 3s; # default of 60s is just too long
- fastcgi_read_timeout 10s; # default of 60s is just too long
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- #Access phpmyadmin
- location /phpmyadmin {
- root /usr/share/;
- index index.php index.html index.htm;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include fastcgi_params;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement