Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I have a virtual server which I am hoping to host several sites on. Each of these sites is in its own subfolder in /var/www/http/ Problem is when ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    5

    Directing a domain to a subfolder


    Hi All,

    I have a virtual server which I am hoping to host several sites on. Each of these sites is in its own subfolder in /var/www/http/

    Problem is when I set up DNS records they can only point to the http folder itself. I suppose I can just redirect each domain to then go to the required subfolder, but I'd like to keep the URL the user sees as a simple xxxxx.com (without subfolder).

    Is there a way for me to do that?

    Thanks!

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    this is what you need
    name based virtual host - Google Search

    several examples in this forum as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •