Solved

name in virtual hosts

Posted on 2014-03-03
3
239 Views
Last Modified: 2014-03-05
Hi,

I have the following code in /etc/apache2/sites-available/testSite


NameVirtualHost 10.123.108.80

<VirtualHost 10.123.108.80>
       DocumentRoot /var/www/turnos
        ServerAdmin webmaster@localhost
        ServerAlias www.test.com
        ServerName test.com
</VirtualHost>

When i enter the ip all works well, go directly to the turnos folder, but how I can make the alias and server name to work?
0
Comment
Question by:joyacv2
[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
3 Comments
 
LVL 31

Accepted Solution

by:
Frosty555 earned 500 total points
ID: 39900931
Do you have DNS records configured for "www.test.com" and "test.com" so that it resolves to your server's IP address?

Also if you server is behind a router, and you are accessing it from your external WAN IP address, you may need to change the configuration so that it will work for any IP address instead of just the 10.123.108.80. E.g.:

NameVirtualHost *:80

<VirtualHost *:80>
       DocumentRoot /var/www/turnos
        ServerAdmin webmaster@localhost
        ServerAlias www.test.com
        ServerName test.com
</VirtualHost>

Open in new window

0
 
LVL 1

Author Comment

by:joyacv2
ID: 39901019
Hi,

Is internal network, how i configure the dns records?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39902553
create a local dns and use it around the network.

TY/SA
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

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 …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

707 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