 |
 |
virtual host problem
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2002
Status:
Offline
|
|
Hi there,
I am created two sites with the Apple Server Admin . The first site is located in /Library/WebServer/Documents/, the 2nd site in /Library/WebServer/Documents/folder. At the 2nd site should be enable the option "Folder Listing" I am bit confused, because it doesn't work. Instead of that I get an 404Error. Is there any other way to create virtual host? How do you manage your sites? I also tried to put my sites into folders in /Library/WebServer/Documents/ and linked to them.
thanks for your support!
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jun 2003
Status:
Offline
|
|
Virtual hosts can be a nightmare sometimes.
My setup uses Register.com's DNS servers, so when I need additonal aliases, I set them up first at Register.com's web interface.
In Server Admin, when I add the new Virtual host, I set them up as two sites. One under the domain name of
www.myvirtualhost.mydomain.com, and the other as
myvirtualhost.mydomain.com
both pointing to the same folder, i.e. Library/WebServer/Documents/newvirtualdomain
You can create them quickly by entering the first v host ( www.myvirtualhost.mydomain.com) and duplicating it for the second in Server Admin.
The "List Folders" option is ment for listing a folders content in case no start pages are found, e.g. not configured in the Site setup window (index.html, default.html, index.php, etc.) I leave this option un-checked.
Hope this helps.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2002
Status:
Offline
|
|
Hi Zwiebel,
thanks for your response! There's additional problem. I hope you can give me any advice. When I updated to OS X 1.3.6 all my site were disabled and the WebServer didn't wont to start. I edited the reqired files, but everytime I run the software updater all my website settings aren't saved. Any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jun 2003
Status:
Offline
|
|
Originally posted by night-dj:
Hi Zwiebel,
thanks for your response! There's additional problem. I hope you can give me any advice. When I updated to OS X 1.3.6 all my site were disabled and the WebServer didn't wont to start. I edited the reqired files, but everytime I run the software updater all my website settings aren't saved. Any ideas?
Look in you server log files for errors. Server Admin/Your Server/Logs.
See what errors are listed, if any, but take a look and let me know.
Another thing is to run Disk Utility and repair permissions.
EDIT: You may also try the following command in the Terminal to see if your configuration file is OK:
apachectl configtest
Hope that helps.
(Last edited by zwiebel_; Nov 22, 2004 at 10:37 AM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2002
Status:
Offline
|
|
Of course I repaired several times the permission. Today I updated to the new iCal Version and suddently the WebServer is stopped and I can't start it now. My Site-Settings were saved.
Here's my log
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/0000_192.168.1.2_80_WebSites.conf
Processing config file: /etc/httpd/sites/0001_192.168.1.2_8080_Proxy.conf
Processing config file: /etc/httpd/sites/virtual_host_global.conf
[Tue Nov 23 19:19:37 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Tue Nov 23 19:19:37 2004] [warn] NameVirtualHost 192.168.1.2:8080 has no VirtualHosts
Syntax OK
[Tue Nov 23 23:52:36 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Tue Nov 23 23:52:36 2004] [warn] NameVirtualHost 192.168.1.2:8080 has no VirtualHosts
[Tue Nov 23 23:52:36 2004] [crit] (48)Address already in use: make_sock: could not bind to address 192.168.1.2 port 8080
Thanks for your patient
(Last edited by night-dj; Nov 23, 2004 at 04:54 PM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|