how to do that with apache

Posted on 2011-10-24
Last Modified: 2012-05-12
i have a classified ad website. i want my user to be able to give the link of their page like the following

Question by:GCI_SUPPORT
    1 Comment
    LVL 19

    Accepted Solution

    You can do what you're describing by default, but then you'd have to put all the user web pages in the DocumentRoot (normally /var/www/html)  Most times, this isn't desirable for administrators.

    It's better if you use the UserDir directive and set it to say "public_html".

    Then the user say has a directory called /home/theirusername/public_html

    And it can be accessed at

    (notice the ~, or tilde character, usually just to the leff of the number 1 key on your keyboard)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    731 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

    15 Experts available now in Live!

    Get 1:1 Help Now