Cano63
Cano63

Reputation: 125

Apache virtual host

Hi does this virtual host configuration is ok?. I,m trying to test it in my local machine and it don,t show the page. I disable the firewall to have all the ports open, do i have to do anything more to open the ports? or the virtual host configuration is wrong.

<VirtualHost linux1:8890>

#General setup for the virtual host DocumentRoot "/srv/www/htdocs/webpage1" ServerName linux1:8890 </virtualHost>

Upvotes: 2

Views: 591

Answers (2)

Ferdy
Ferdy

Reputation: 41

You should have Listen 8890 somewhere, also above the declaration of the Virtualhosts you need NameVirtualHost *:8890

The virtualhost you define is ok, but you can only access that virtualhost by the hostname.

Upvotes: 0

meder omuraliev
meder omuraliev

Reputation: 186562

Did you add Listen 8890 anywhere? Apache needs this command in order to listen to that port.

Upvotes: 2

Related Questions