Greetings,
I deal with a number of websites. Traditionally I fire up my server and develop to it from another machine. Lately, I wanted to use my Mac G4 Powerbook (Mac OS X 10.4.6) as both server and development machine. I
started reading that the G4 has Apache installed and that all I needed
to do is configure the "httpd.conf" file so that I could develop
several sites simultaneously.
My first attempt failed. Personal Web Sharing would hang and never
start and I had to restore the httpd.conf file.
My questions are:
How do I modify the Apache httpd.conf file properly to support more
than one website?
And
What other modifications might I need to do to my G4 (such as the
NetInfo Manager) in order for it to support multiple websites?
I have read several articles, but apparently I didn't follow them
closely enough.
Can anyone explain what I need to do or point me to a few set-up
articles that are layperson friendly?
Here is what I did previously...
File: httpd.conf
Original Lines:
#NameVirtualHost *:80
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Modified to:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /Users/myname/Sites/dummy-host.example.com
ServerName localhost
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /Users/myname/Sites/personal
ServerName local.mynametest.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /Users/myname/Sites/personalsecure
ServerName local.mynamesecure.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
This modification resulted in Apache (Personal Web Service) not
starting up properly.
Thank you,
TPK
Greetings,
I deal with a number of websites. Traditionally I fire up my server and develop to it from another machine. Lately, I wanted to use my Mac G4 Powerbook (Mac OS X 10.4.6) as both server and development machine. I
started reading that the G4 has Apache installed and that all I needed
to do is configure the "httpd.conf" file so that I could develop
several sites simultaneously.
My first attempt failed. Personal Web Sharing would hang and never
start and I had to restore the httpd.conf file.
My questions are:
How do I modify the Apache httpd.conf file properly to support more
than one website?
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 790 |
Nodes: | 20 (0 / 20) |
Uptime: | 41:07:36 |
Calls: | 12,115 |
Calls today: | 5 |
Files: | 5,294 |
D/L today: |
72 files (9,959K bytes) |
Messages: | 564,934 |