Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to access my localhost but I am getting a "Not Found" error. What I am trying to do is get to my Sites directory (/User/[username]/Sites).

Right now I have the following commented:

# Real-time info on requests and configuration
# Include /private/etc/apache2/extra/httpd-info.conf

I've also got my permissions correct:

User [username]
Group staff

Any info would be great. Also if someone could give me the correct naming of this technique - that would be helpful. Instead of just calling it "Removing Apache per user directories."

Thank You!

share|improve this question
    
Your logs say...? –  Ignacio Vazquez-Abrams Mar 7 '12 at 22:26
    
Sorry - I actually should have checked that out and included it. But I actually forgot to add locahost as a virtual host. My bad! –  alvincrespo Mar 7 '12 at 22:31

1 Answer 1

Nevermind everyone. What I really needed to do was add the virtual host within my vhost.conf file as so:

<VirtualHost *:80>
    DocumentRoot "/Users/[username]/Sites"
    ServerName locahost
    ErrorLog "/private/var/log/apache2/localhost-error_log"
    CustomLog "/private/var/log/apache2/localhost-access_log" common
</VirtualHost>

I apologize for the confusion.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.