Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 (without subfolder).

    Is there a way for me to do that?


  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    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