Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am building a website for my own education, and am trying to learn Apache. Consequently, I've noticed an odd behavior I was hoping someone could explain. Basically, when I start Apache via WebSharing, I can access both my shortname index and the base directory that Apple provides. When I try to visit the same Apple-provided sites after starting Apache via command line sudo apachectl start, I get 404 on both pages, even though top registers httpd processes running.

What don't I understand about Apache as provided by Apple?

share|improve this question
    
Placeholder - edit I made is not accurate. –  learner May 13 '12 at 16:39
    
The solution is to create a /usr/htdocs. In my case, I created a symlink to the default /Users/name/Sites. –  learner May 13 '12 at 16:53
    
That doesn't make much sense, I suspect something is off with your configuration. –  Gerry May 14 '12 at 12:52
    
Any thoughts in particular? I don't want to be reliant on Apple's button-pressing magic, as I would like to rebuild this server on a different OS and want to know more about Apache. –  learner May 14 '12 at 15:50
    
Did you install a second Apache installation by any means? –  Gerry May 14 '12 at 16:56

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.