Apache changes URL to HOSTNAME

Posted on 2007-10-19
Last Modified: 2012-08-14
I wish to access my local apache server both from my internal subnet and externally. Externally I use a and internally I use just the IP number. The problem is that with some web-applications (I think the ones specifying absolute paths to my local machine) the URL gets replaced by the host name, which is currently not usable even locally.

My question is: can I configure apache in some way so that it uses the URL of the request instead of inserting /etc/HOSTNAME?
Question by:obg
    LVL 9

    Accepted Solution

    UseCanonicalName Off
    LVL 2

    Author Comment

    Hrmm... That was way too simple! I'm a bit angry with myself not having found that switch myself.

    Thank you, btw. Under normal circumstances I like simple solutions...

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now