Skip to main content
Home▸ Forums▸ MacNN▸ Mac as a web host server — #45
Post #45 by ppmax
Source ForumMacNN
CategoryNetworking
Post DateThu, 21 Jul 2005 - 00:25
Original URLhttps://web.archive.org/web/20050801082422/https://forums.macnn.com/showthread.php?t=259217
Post
Questions:
Are you restarting Apache after every change you make to the httpd.conf file?
Are you sure port 80 is blocked by your ISP?
Have you checked the syntax of you httpd.conf file? After you edit the file drop to the terminal and run:
sudo apachectl configtest

Anyways, looks like you've got some errors in your httpd.conf file. Try this:

code:

NameVirtualHost *
Listen 81
<VirtualHost *:81>
DocumentRoot /Library/WebServer/Documents/tiff
ServerName www.tiffanycalvert.com
<Directory "/Library/WebServer/Documents/tiff"
allow from all
Options +Indexes
</Directory>
</VirtualHost>

<VirtualHost *:81>
DocumentRoot /Library/WebServer/Documents/josh
ServerName www.joshazzarella.com
<Directory "/Library/WebServer/Documents/josh"
allow from all
Options +Indexes
</Directory>
</VirtualHost>



Let me know how it works.