Helpful Information
Home
Categories
Contact us
Category: Apache Development
Virtual Hosts and ExecCGI
My VHOST entry (below) Each Virtual host has its own cgi-bin. Should each vhost have a
<Directory "pathtovhosts/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
as well?
<VirtualHost (ommitted):80>
SSLDisable
RedirectMatch 301 (.*) https://host.domain
Servername host.domain
ServerAlias contacts
</VirtualHost>
<VirtualHost (ommitted):443>
SSLEnable
Port 443
SSLVerifyClient 0
SSLVerifyDepth 10
SSLCertificateKeyFile /usr/local/certs/vhost.key
SSLCertificateFile /usr/local/certs/vhost.crt
SSLCACertificateFile /usr/local/certs/ca.crt
Servername host.domain
ServerAlias contacts
DocumentRoot /var/www/vhosts/rms/htdocs/
ScriptAlias /cgi-bin/ /var/www/vhosts/rms/cgi-bin/
... DIR IN HERE?
ErrorLog /var/www/vhosts/rms/logs/error.log
TransferLog /var/tmp/rms.access
</VirtualHost>
>> Should each vhost have a ... as well
Start here -> http://httpd.apache.org/docs/mod/mod_vhost_alias.html#virtualscriptalias
>> DIR IN HERE?
If you haven't defined that globally, then define it there.
privacy (GDPR)