Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > virtual host problem

virtual host problem
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2002
Status: Offline
Reply With Quote
Nov 13, 2004, 09:23 AM
 
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
Reply With Quote
Nov 18, 2004, 10:26 AM
 
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
Reply With Quote
Nov 21, 2004, 07:37 AM
 
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
Reply With Quote
Nov 22, 2004, 12:52 AM
 
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
Reply With Quote
Nov 23, 2004, 12:27 PM
 
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. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:24 PM.
All contents of these forums © 1995-2013 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2013, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2