Created
December 6, 2016 22:24
-
-
Save jfreites/44609875a4c1ddb4fbadd60df37e9171 to your computer and use it in GitHub Desktop.
Alice & Bob nginx configurations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server{ | |
listen 80; | |
#ssl off; | |
#ssl_certificate /etc/ssl/certs/dafitilocal.crt; | |
#ssl_certificate_key /etc/ssl/private/dafitilocal.key; | |
server_name alice.dafitilocal.com; | |
access_log /var/www/logs/local_alice.access.log; | |
error_log /var/www/logs/local_alice.error.log; | |
client_max_body_size 5m; | |
client_header_timeout 1200; | |
client_body_timeout 1200; | |
send_timeout 1200; | |
keepalive_timeout 1200; | |
root /SharedFiles/OSOM-CART-MEMCACHE-V1/alice/public; | |
try_files $uri $uri/ /index.php?$args; | |
index index.php; | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
#fastcgi_pass unix:/tmp/local_dafiti.sock; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_connect_timeout 1200; | |
fastcgi_send_timeout 1200; | |
fastcgi_read_timeout 600; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param APPLICATION_ENV dev; | |
} | |
} | |
server { | |
listen 80; | |
underscores_in_headers on; | |
server_name bob.dafitilocal.com; | |
access_log /var/www/logs/local_bob.access.log; | |
error_log /var/www/logs/local_bob.error.log; | |
client_max_body_size 20m; | |
client_header_timeout 1200; | |
client_body_timeout 1200; | |
send_timeout 1200; | |
keepalive_timeout 1200; | |
root /SharedFiles/OSOM-CART-MEMCACHE-V1/bob/public/; | |
try_files $uri $uri/ /index.php?$args; | |
index index.php; | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
#fastcgi_pass unix:/tmp/boblocal_dafiti.sock; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_connect_timeout 1200; | |
fastcgi_send_timeout 1200; | |
fastcgi_read_timeout 600; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param APPLICATION_ENV dev; | |
} | |
set $redirect on; | |
if ($request_uri ~* /(alice|netsuite)?(/)+webservice.* ) { | |
set $redirect off; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment