Apache Virtual Host

Apache Virtual Host can be managed on a dedicated server.

<VirtualHost 74.54.217.194:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/user-name/public_html
<IfModule mod_suphp.c>
suPHP_UserGroup user-name user-name
</IfModule>
<IfModule !mod_disable_suexec.c>
User user-name
Group user-name
</IfModule>
BytesLog /usr/local/apache/domlogs/domain.com-bytes_log
CustomLog /usr/local/apache/domlogs/domain.com combined
Options -ExecCGI -Includes
RemoveHandler cgi-script .cgi .pl .plx .ppl .perl
ScriptAlias /cgi-bin/ /home/user-name/public_html/cgi-bin/
</VirtualHost>

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

.htaccess guidance

.htaccess is a special Apache file that tells your website how to function. You can edit the...

About Apache

Apache is the program on our servers used to view web pages. What are the maximum number of...

Apache Directives for .htaccess

Here is a list of the Apache Directives you can use in the .htaccess file. AddCharSet: Maps...

Apache mod_rewrite and examples

What is mod_rewrite? Mod Rewrite allows you to change the URL that everyone sees when they visit...

Can I access my Apache log files?

Shared and Reseller You can login to cPanel and click the Error Log icon. This contains all the...