can't locate my Webserver folder

Joined
Oct 19, 2009
Messages
4
Reaction score
0
Points
1
Hi All
Working my way through publishing a website.

Have a problem that one of you may be able to help me with.

I have an iMac 24" 2.8 Ghz Core Duo 2 running Mac OS X 10.5.8. I am searching for the Apache webserver files that should be located at /Library/Webserver/... on my hard drive. They are not there. Finder cannot locate any of the folders or files for the webserver. Despite this, I can still run and see the site at 127.0.0.1.

Anyone have any suggestions as to where these files might be located?

krs

Monsterdrive
 

dtravis7


Retired Staff
Joined
Jan 4, 2005
Messages
30,133
Reaction score
703
Points
113
Location
Modesto, Ca.
Your Mac's Specs
MacMini M-1 MacOS Monterey, iMac 2010 27"Quad I7 , MBPLate2011, iPad Pro10.5", iPhoneSE
I am running 10.5.8 and all my files for the sites I did in iWeb are in Users/Username/Sites.

Replace Username with your account name. I hope that is what you are after.
 
OP
M
Joined
Oct 19, 2009
Messages
4
Reaction score
0
Points
1
I am running 10.5.8 and all my files for the sites I did in iWeb are in Users/Username/Sites.

Replace Username with your account name. I hope that is what you are after.

Unfortunately it isn't. I'm after the files that are resources for the Apache Web server - included in the O/S. I've got the server up and running (by activating web sharing in SHARED preferences) and can access the default web server page at 127.0.0.1, but I cannot locate the resource files for the server. They should be in library/webserver... but I have no such sub folder in my /library folder.
 
Joined
May 31, 2009
Messages
203
Reaction score
3
Points
18
Location
Vancouver, Canada
Your Mac's Specs
15" Unibody (Jan 09)
It's /Library/WebServer/Documents. Make sure "Web Sharing" is on in your system preferences.
 
OP
M
Joined
Oct 19, 2009
Messages
4
Reaction score
0
Points
1
It's /Library/WebServer/Documents. Make sure "Web Sharing" is on in your system preferences.

Web sharing is on. The website is live. I can view the site in Safari. But I cannot locate /Library/WebServer/Documents through the finder.

Any ideas?
 
Joined
Aug 6, 2004
Messages
1,713
Reaction score
71
Points
48
Location
Tejas
Your Mac's Specs
2GHz Mac Mini 2GB RAM 160GB 10.6.2 | MDD DP 1.25GHz G4 1.5GB RAM 10.4.11 | 233MHz iMac G3 10.3.9
Should be in HD/Library/WebServer/Documents, HD = your hard drive's name :)
 
Joined
Feb 26, 2009
Messages
20
Reaction score
1
Points
3
All that sounds messy to me... Why not just keep all sites in one folder:
/Username/Sites

Then edit your http-vhost and host files to all point in one location:

Example http-vhost file (/private/etc/apache2/extra/httpd-vhosts.conf) entry:
Code:
#SomeSite.com
<VirtualHost *:80>
    DocumentRoot "/Users/yourUserName/Sites/somesite"
    ServerName somesite.dev
</VirtualHost>

Example host file (/private/etc/hosts) entry:
Code:
127.0.0.1       somesite.dev
 
Joined
Feb 5, 2010
Messages
1
Reaction score
0
Points
1
B-Ryan I actually tried that, but I keep gettinga 403 forbidden page. Any clues on that?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top