Unwanted URL rewriting - apache replaces server name with ip in address bar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  I have a problem with one of my servers; When I enter
http://www.myserver.com in address bar (IE & Firefox), apache replaces the
server name (e.g. www.myserver.com) with an ip address. I tried with &
without virtual hosts but no chance. I also tried UseCanonicalName with yes
& no. How can I disable this?
This is my virtualhost config:

NameVirtualHost 1.2.3.4:80

<VirtualHost 1.2.3.4:80>
        ServerName www.myserver.com
        UseCanonicalName Off
        ServerAlias myserver.com
        ServerAlias 1.2.3.4
        CustomLog     /etc/httpd/logs/myserver-access.log combined
        ErrorLog      /etc/httpd/logs/myserver-error.log
        LogLevel info
        DocumentRoot /home/tomcat/webapps
        DirectoryIndex index.html index.htm index.shtml index.jsp
        JkAutoAlias /home/tomcat/webapps

        JkMount /*.jsp ajp13

        JkMount /servlet/* ajp13
        JkMount /*.do ajp13
        # Deny direct access to WEB-INF
        <LocationMatch ".*WEB-INF.*">
                deny from all
        </LocationMatch>
</VirtualHost>


Thanks.
-- 
View this message in context: http://www.nabble.com/Unwanted-URL-rewriting---apache-replaces-server-name-with-ip-in-address-bar-tf3700638.html#a10348497
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux