?
Solved

name in virtual hosts

Posted on 2014-03-03
3
Medium Priority
?
248 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 2000 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

Portable, direct connect server access

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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