logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: localhost problem on a mac
Author
winkylocc



Joined: 01 Nov 2015
Posts: 10
Location: US

PostPosted: Fri 01 Jan '16 17:14    Post subject: localhost problem on a mac Reply with quote

So if I navigate in any of my browsers to localhost, I get the default "It works" page. However, as soon as I try navigation to my sites directory which has been told to act as my user document root, I get an error that says not found. What is weird is that if I double click the actual index.html file in the Sites folder, I get the page that I expect which says a little bit more than "It works".
The url of the file that I double-click in Sites folder of finder is
Code:
file:///Users/MyMacbook/Sites/index.html

When I try accessing that page through localhost I try
Code:
http://localhost

That produces as expected with "It works". When I try
Code:
http://localhost/~MyMacbook/

I get the not found error. I have even tried typing the full path of it by
Code:
http://localhost/Users/Sites/MyMacbook/

In my MyMacbook.conf file I have the following configuration
Code:
<Directory "/Users/MyMacbook/Sites/">
  Options Indexes MultiViews FollowSymLinks
  AllowOverride ALL
  Order allow,deny
  Allow from all
</Directory>
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Fri 01 Jan '16 18:25    Post subject: Reply with quote

Try http://localhost/MyMacbook/
Back to top
winkylocc



Joined: 01 Nov 2015
Posts: 10
Location: US

PostPosted: Fri 01 Jan '16 19:03    Post subject: Reply with quote

Returns the same thing.
Back to top
winkylocc



Joined: 01 Nov 2015
Posts: 10
Location: US

PostPosted: Sat 02 Jan '16 21:23    Post subject: RESOLVED Reply with quote

Commenting out the following lines in /etc/apache2/httpd.conf
Code:

#User _www
#Group _www

allows me to finally serve documents from my Sites folder by navigating through localhost~/myusername
Back to top


Reply to topic   Topic: localhost problem on a mac View previous topic :: View next topic
Post new topic   Forum Index -> Apache