Solved

Provide valid name instead of localhost in apache 2.2

Posted on 2013-05-29
2
394 Views
Last Modified: 2013-06-04
Hi,

I need to provide a logical name to the site in apache

in the httpd.conf file i have added the virtual host

<VirtualHost *:80>
    DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\example1"
    ServerName www.textexample123.com
 
    # Other directives here
</VirtualHost>


and when i try to execute the site with the name " www.textexample123.com" it goes to the internet for searching the url instead it should point to the project i am running.

Is there any other modification i need to make  in the file.
httpd.txt
0
Comment
Question by:Rocking
2 Comments
 
LVL 5

Accepted Solution

by:
DOSLover earned 180 total points
Comment Utility
As per apache documentation (http://httpd.apache.org/docs/current/vhosts/name-based.html), " ... Of course, you can't just make up names and place them in ServerName or ServerAlias. You must first have your DNS server properly configured to map those names to an IP address associated with your server."

Are you testing this on the local server? Probably using proxy might help what you are trying to.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 95 total points
Comment Utility
You can also put it in your 'hosts' file (/etc/hosts).
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

14 Experts available now in Live!

Get 1:1 Help Now