Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Try to access a virtual host in a Apache Web Server on a Red Hat Linux box and only the "Test Page" shows up

Posted on 2004-08-20
2
Medium Priority
?
276 Views
Last Modified: 2013-12-15
Hi,

I'm trying to setup a webserver with virtual hosts in a Red Hat Linux (Pro 9.0) box using the service of DynDns.

I created a virtual host with the name server, say "www.xyz.com". This is a real registered domain name. This domain name has been delegated to the namne servers of DynDns.org. I also registered this domain name with DynDns to use its service. DynDns already informed me about the delegation of this domain name has been completed.

The web server starts succesfully on the server and I alrready tested it with different web pages on the localhost 127.0.0.1 and it runs perfectly.

I'd like to setup this domain name as a virtual host on this web server.  I've done the following steps:
-- Open Red Hat Start --> System Settings --> Server Settings --> HTTP Server ====> Aapche Configuration window pops up
-- In "Main" tab, I named the web server, say Apache-1, and inside "Addresses Available" area, I let "All avaiable addresses on port 80" stay as default
-- In "Virtual Host" tab, I did the following things:
*** In Basic Setup
--> Named the virtual host, say virhost1
--> Set the root document directory: /var/www/html/virhost1

*** In Host Information
--> Select "Name-Based Virtual Host"
--> IP Address: is set to 192.168.1.x (this is the dynamic IP address of this Linux box)
--> Server Name: is set to "www.xyz.com"

Then I access the router (a Linksys router) to forward all the requests coming to the port 80 of the router to the dynamic IP Address of the web server, i.e. 192.168.1.x

I also created a home page, named index.html and I placed it into the root document directory (/var/www/html/virhost1/)

When I tried to access the web site www.xyz.com via the Internet, I can only get the "Test Page", exactly the same thing when I test the Apache web server the first time. It doesn't go to the assigned directory.

Maybe I missed something during these steps, please help. Any help would be appreciated.

Thanks,

Rfr1tz
0
Comment
Question by:rfr1tz
[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
2 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 1000 total points
ID: 11857099
Have you restarted the apache server in order to make it re-read in your configuration?
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 11857110
Also I recommend that you do not use a dynamic IP for a server inside your network that you are routing to.

The point of dyndns is that it maps your networks maps your domain name to your EXTERNAL ip so that your router can forward the request to your server.

HTH:)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

609 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