Linux Server - How to set root web directory

Posted on 2011-10-21
Last Modified: 2012-06-27
I am running a linux server and I need to set the main directory that server web pages. Can someone tell me what file this is usually set in?

Question by:elliottbenzle
    LVL 2

    Expert Comment


    Open in new window

    LVL 2

    Expert Comment

    Oh and the file is if usually set in is:

    /etc/apache2/sites/available/[your site]

    Open in new window

    LVL 2

    Expert Comment



    It is friday afternoon......
    LVL 31

    Accepted Solution

    What kind of Linux distro are you using?

    For Redhat family, you need to modify the file


    And you need to modify the tag

    LVL 21

    Expert Comment

    LVL 4

    Author Closing Comment

    Thanks, that was it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now