Solved

Provide valid name instead of localhost in apache 2.2

Posted on 2013-05-29
2
401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
DOSLover earned 180 total points
ID: 39205526
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 83

Assisted Solution

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

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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