View Single Post
Old 09-05-2010, 10:11 PM   #2
Rathji
Franchise Player
 
Rathji's Avatar
 
Join Date: Nov 2006
Location: Supporting Urban Sprawl
Exp:
Default

Quote:
Originally Posted by FlamesPuck12 View Post
I just recently signed up for VPS and I'm trying to configure everything to just host a simple web page as a test but so far no success.

First problem is, I got my domain parked at DNS provided by VPS (using Linode) but for some reason, it displays a different page than the direct IP.

Second, I'm still trying to learn my way around the VPS and I've heard that the main page is in /var/www/index.html. Is this the directory (root/var/www) where all the web pages should be going into?

Thanks
Assuming you are using a standard web server (probably apache) you can configure your pages to be served from any location. Really not much point in it as far as I am concerned though. That is the default location.

As for your Domain name/IP page display differences, I assume it is similar to how IIS can route a page accessed by a different domain name to a separate page hosted on the same port/server. It is called Host Header in IIS, but there is probably something similar in Apache.

edit: A quick google leads me to believe that you *might* want to use mod_rewrite to accomplish this. http://httpd.apache.org/docs/2.0/misc/rewriteguide.html Note: I have never used this and never really done anything other than a basic page or prebuilt php package with Apache, so I might be totally wrong. Make sure you do some more research before you blindly start banging in commands.
__________________
"Wake up, Luigi! The only time plumbers sleep on the job is when we're working by the hour."

Last edited by Rathji; 09-05-2010 at 10:18 PM.
Rathji is offline   Reply With Quote
The Following User Says Thank You to Rathji For This Useful Post: