Apache2 Virtualhost Issue: Always using same Domain
Hi,
I have issues configuring Vhost un Ubunt. I have the following configuration but reading on the Web I cannot find a suitable configuration. I have at the momento 2 domains:
First "enruta2":
<VirtualHost *:80>
ServerName www.enruta2.com.mx
ServerAlias enruta2.com.mx *.enruta2.com.mx
ServerAdmin <email address hidden>
DocumentRoot /home/enruta2we
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/enruta2we
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwne
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Second Site "servgeo":
<VirtualHost *:80>
ServerName www.serviciosge
ServerAdmin <email address hidden>
DocumentRoot /home/servgeo/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/servgeo/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwne
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
No mater what I do with this files always get www.enruta2.com.mx, even when try to reach www.serviciosge
Default site it is activate also.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu apache2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: