Permalink
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (49 sloc) 1.53 KB
<VirtualHost __your_domain__:80>
AddDefaultCharset utf-8
ServerAdmin ADMIN@DOMAIN.HERE
ServerName __your_domain__
DocumentRoot /usr/local/submitty/site/public
ScriptAlias "/cgi-bin" "/usr/local/submitty/site/cgi-bin"
DirectoryIndex index.html index.php index.htm index.cgi
SuexecUserGroup submitty_cgi submitty_cgi
<FilesMatch "\.php$">
<If "-f %{REQUEST_FILENAME}">
SetHandler "proxy:unix:/var/run/php/php-fpm-submitty.sock|fcgi://localhost/"
</If>
</FilesMatch>
# Define a matching worker.
# The part that is matched to the SetHandler is the part that
# follows the pipe. If you need to distinguish, "localhost; can
# be anything unique.
<Proxy "fcgi://localhost/" enablereuse=on max=10>
</Proxy>
<Files .*>
Order allow,deny
Deny from all
</Files>
<Files *~>
Order allow,deny
Deny from all
</Files>
<Files #*>
Order allow,deny
Deny from all
</Files>
<Directory />
AllowOverride None
</Directory>
<Directory /usr/local/submitty/site/public>
Require all granted
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/local/submitty/site/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
</Directory>
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/submitty.log
CustomLog ${APACHE_LOG_DIR}/submitty.log combined
</VirtualHost>