Skip to content

Instantly share code, notes, and snippets.

@foxiepaws
Created December 5, 2012 16:50
Show Gist options
  • Save foxiepaws/4217343 to your computer and use it in GitHub Desktop.
Save foxiepaws/4217343 to your computer and use it in GitHub Desktop.
new mka2host
ScriptAlias /cgi-bin/ #DIR#/cgi-bin/
<Directory "#DIR#/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
my %config = (
vhostroot => '/srv/www/',
ip => '127.0.0.1',
port => '80',
cgi_enabled => 1,
php_enabled => 1,
php_fcgid_host => 'localhost',
php_fcgid_port => '9000',
allowoverride => 'None',
admin => 'webmaster@domain.com'
);
FastCgiExternalServer #DIR#/cgi-bin/php5.external -host #PHPHOST#
<VirtualHost #ip#:#port#>
ServerAdmin #ADMIN#
ServerName #HOST#
ErrorLog #DIR#/logs/error.log
LogLevel warn
CustomLog #DIR#/logs/access.log combined
DocumentRoot #DIR#/htdocs/
<Directory #DIR#/htdocs>
Options Indexes FollowSymLinks MultiViews
AllowOverride #OVERRIDE#
Order allow,deny
allow from all
</Directory>
#CGI#
#PHP#
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment