Virtual Configuration

21 views
Skip to first unread message

famous

unread,
Mar 6, 2015, 2:12:21 AM3/6/15
to gce-dis...@googlegroups.com
I have my configuration set like below, however I get the Apache 2 Test Page powered by CentOS instead of the index.html page I have setup in /var/www/html/vhosts/mysite.com. Any ideas on how to fix this?

Thanks


#Listen 80NameVirtualHost *:80#NameVirtualHost myipaddress:443NameVirtualHost myipaddress:80## NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the# SSL protocol.### VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for requests without a known# server name.##<VirtualHost *:80><VirtualHost myipaddress:80> ServerAdmin webm...@www.mysite.com DocumentRoot /var/www/html/vhosts/mysite.com ServerName mysite.com ServerAlias mysite.com ErrorLog logs/mysite.com-error_log CustomLog logs/mysite.com-access_log common</VirtualHost>

Advisor Joao

unread,
Apr 15, 2015, 5:30:44 PM4/15/15
to gce-dis...@googlegroups.com
Hi Famous,

Technical questions like these would be better asked in the [GCE] tag in StackOverlow[1], as you would be more likely to get a better answer more quickly. For network and admin questions, we recommend Serverfault[2].

This way, you will reach more people. The question format of Stackoverflow is better for this type of questions, and you will help future users with the similar issues.

Sincerely,

Joao.

Reply all
Reply to author
Forward
0 new messages