Solved

name in virtual hosts

Posted on 2014-03-03
3
238 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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