Apache LIVE


SSL - we have our wildcard cert on the load balancer and so the main servers only have to

deal with HTTP traffic.

LIVE PHP - although we are Apache, we use PHP5-fpm for our PHP processing and not the

CGI version. When configuring PHP, then use /etc/php5/fpm/ to make changes. The use of

PHP FPM is configured in the apache2 mods (mod_php i think)

DEV PHP - On our local vagrant boxes - PHP5-FPM is NOT used - this remains using the

standard apache2 PHP CGI. When configuring PHP, then use /etc/php5/apache2/ to make

changes


<VirtualHost *:80>

ServerAdmin webmaster@localhost

DocumentRoot /var/www/nuplatform

ErrorDocument 500 /error-500.html

<Directory /var/www/>

Options +ExecCGI

AllowOverride None

</Directory>

<Directory /var/www/nuplatform>

Include /var/www/nuplatform/.htaccess

</Directory>

<Directory /var/www/nuplatform/company-import>

deny from all

</Directory>

<Directory /var/www/nuplatform/min/builder>

Include /var/www/nuplatform/min/builder/.htaccess

</Directory>

<Directory /var/www/nuplatform/payment-ipns>

Include /var/www/nuplatform/payment-ipns/.htaccess

</Directory>

<Directory /var/www/nuplatform/platform/min>

Include /var/www/nuplatform/platform/min/.htaccess

</Directory>

<Directory /var/www/nuplatform/projects/nuweb/tickets/ui/views/app>

Include /var/www/nuplatform/projects/nuweb/tickets/ui/views/app/.htaccess

</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory "/usr/lib/cgi-bin">

AddHandler cgi-script cgi pl


AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

Order allow,deny

Allow from all

</Directory>

ErrorLog /var/log/apache2/error.log

LogLevel warn

</VirtualHost>

<VirtualHost *:80>

ServerName maintenance.nutickets.com

DocumentRoot /var/www/external/nutickets-holding

</VirtualHost>

<VirtualHost *:80>

ServerName load.nutickets.com

DocumentRoot /var/www/external/nutickets-load

</VirtualHost>

<VirtualHost *:80>

ServerName nue.so

DocumentRoot /var/www/external/url-shortener

<Directory /var/www/>

Options +ExecCGI

AllowOverride All

</Directory>

</VirtualHost>