Apache2 Re-Routing from Domain Name to Internal IP Address
Posted
by
Richard Grey
on Server Fault
See other posts from Server Fault
or by Richard Grey
Published on 2012-04-03T15:27:29Z
Indexed on
2012/04/03
17:33 UTC
Read the original article
Hit count: 297
ubuntu
The problem that I am having, is that when someone goes to my domain name example.co.uk, for some reason, apache seems to be re-routing the request to the internal IP address of the server, i.e. 192.168.0.52
My Apache2 default sites enabled file is as follows:
ServerAdmin [email protected]
ServerName trusteeguard.co.uk
ServerAlias www.trusteeguard.co.uk
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
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 All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/trusteeguard-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/trusteeguard-access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
This is an Ubuntu box if that is any help ;)
© Server Fault or respective owner