Setting up Virtual Hosts on a Snow Leopard Development Server

Hi Everybody,
I'm losing hair over this - I thought it would be simple!
I have set up a Mac Mini Server running SLS and would like to host multiple websites for development on the internal network. I require the websites to be stored anywhere on the server, not just in Library/WebServer/Documents/. Ideally, I would like to access them by example.com/mynewsite so I don't have to mess around with DNS.
Currently I'm setting up websites in the Server Admin Web panel but it just doesn't work. I've noticed the error log keeps looking for files located in the Library/WebServer/Documents/ folder even though I have specified a different folder.
What Am I missing? Does anybody know of a tutorial / guide to point out potential issues when setting up virtual hosts? I have checked Apple's guide but it doesn't really help me. Any pointers would be much appreciated!
Cheers

Sites is likely failing here because Sites is based on the DNS and on the HEAD command within the http stream; if the DNS does not match, you won't get to the host, and if the HEAD command doesn't match the entry in the site, then you'll either get the * wildcard or (if no *) you won't be transferred to the target Site.
Check the web server logs, as a start.
If you want to see how this stuff works at the protocol level, you could telnet to port 80 and toss a http 1.1 GET / command and see what you get back for a page.
Per [rfc2616|http://tools.ietf.org/html/rfc2616], this sequence looks like this:
+telnet www.example.com 80+
then:
+GET / HTTP/1.1+
+host: www.example.com+
followed by two presses of the return key, and where www.example.com is your target Site (virtual host) name.
Alternatives to using DNS and virtual hosts are port-based hosting (which is easy), and you can also use IP addresses to establish virtual hosts. The former is set up via the Sites stuff, with various other ports being used for the web servers. Ugly, but easy. The IP-based approach can get ugly fast, too.
If you get DNS going and aliases added, and all this goes away in a puff of greasy orange smoke.

Similar Messages

  • Problem editing hosts file in Snow Leopard

    I am having trouble editing my hosts file in Snow Leopard. Well, I can edit it fine, but the changes seem to give no effect whatsoever.
    My hosts file looks like so:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost
    127.0.0.1 localhost www.localhost.com
    I cannot access localhost by entering '127.0.0.1' into my browser, nor can I access it by entering 'www.localhost.com'.
    Firefox simply tells me either 'Unable to Connect' or 'The Connection was reset', respectively.
    Is there something I am doing wrong?? I have been looking all over the internet all week and cannot see what I might be missing!
    The only way I can connect to localhost is by visiting 'http://localhost:8888/'.
    If it helps, I am running MAMP.
    Thanks to anyone who can help.

    Never mind, I found out MAMP was using port 8888 instead of 80, so I reset it and now it works fine

  • Getting Fusion to load a virtual Lion OS in Snow Leopard

    Today VMWare has a half-price sale on Fusion 4. So I bought one. My intent is to run a virtual copy of either Snow Leopard or Lion in the other OS X version.
    Meaning if Snow Leopard is booted and Fusion runs in it, then Lion would be running as a virtual machine.
    As is common with most software, Fusion's docs and help process is a mess. Full of stuff the engineer who wrote it understands, but opaque to a noob.
    If anyone has done this, a link to step-by-step instructions would be great.

    OOPS!  I just noticed you actually have Lion, and want to go back to Snow Leopard.  That may or may not work.  The first test would be to see if you can boot your new MacBook 13" from a Snow Leopard installation DVD, or from another Mac in Firewire Target mode, or a bootable external Snow Leopard disk (SuperDuper or Carbon Copy Cloner created).
    If that works, then Yes, but before trying anything make sure you have full backups (SuperDuper or Carbon Copy Cloner, or even TimeMachine).  2 copies would be even better.
    Bootcamp is not needed.  Bootcamp is an aid to installing and running the Windows OS
    You can install Lion on an exteernal disk, and boot from that by holding down the Option key during boot.
    You can repartition your internal disk so you have 2 partitions.  You restore your Snow Leopard backup to one partition, and install Lion on the other.  You can choose to boot into either partition by holding own the Option key during boot.  You could also use System Preferences -> Startup Disk to switch between Snow Leopard and Lion.
    You can use virtual machine software (VMware Fusion, Parallels, VirtualBox) on Snow Leopard (does not work the other way), then install Lion in a virtual machine (your MacBook should have a minimum of 4GB if you are going to try this).  This would allow you to run Snow Leopard and Lion at the same time.
    You could buy one of those kits that replaces your DVD drive with a Solid State Disk (SSD), and instlal Lion on the SSD, and again boot holding the Option key or use Startup Disk system pref to switch between the OS versions.
    Message was edited by: BobHarris

  • Snow Leopard X Server

    Can the Snow Leopard X Server be installed on a iMac, and then a user use the same iMac for their own use without using any of the server os. Also, will a MacBook Pro connect and work to the network.
    I ahve a small company and want to connect a MacBook Pro and use an iMac as a pc and also as a server to gain the benefits of push e-mail, calendar, etc.

    I really wanted to use the server for sharing files
    As mentioned, unless you're going to have more than 10 people connecting to the machine at one time, you don't need the server... normal Mac OS X is basically a pretty powerful server, just not as full-featured one as Mac OS X Server. File sharing is pretty easy.
    security
    Not sure what you mean there.
    push e-mail
    Unless this is in-house e-mail only, you are potentially getting into a major can of worms and a lot of complexity trying to supply your own e-mail server. You'll have to ensure that your server has a static IP address (which costs money) and can be accessed from outside your local intranet (which may require changing your networking hardware), and you'll have to make sure it's always running (which may require buying monitoring software and hiring someone to be on-call to come fix the server any time it has a problem). You'd be better off getting e-mail accounts with your ISP. For example, my wife's small business has a web hosting account that comes with up to 400 (IIRC) e-mail addresses, all for $10/month.
    calendar functionality.
    What type of calendar functionality? What specific functionality do you need?

  • Is mail for virtual domains fixed in snow leopard?

    My goal is to set up several different domains, and have email for users for each of those domains
    In 10.5 (Leopard) you could set this up by creating virtual hosts (for the extra domains), and by creating an email alias' --- however this was broken functionality requiring significant (to me at least as I am not a programmer) manual circumvention of the setup and administration tools provided by apple
    Does anyone know if this is now fixed in 10.6 (snow leopard)? Can I, just using the admin tools and without any behind the scenes programming tweaks, set this up?
    Cheers,
    Brad

    It's not clear which "manual" you used to set up virtual domains.
    Look at this white paper from osx.topicdesk.com:
    http://downloads.topicdesk.com/docs/MakingVirtual_Mail_Users_in_OS_XServer.pdf
    and this white paper about setting rejections for virtual users:
    http://downloads.topicdesk.com/docs/RejectingMail_before_filter_in_Mac_OSX.pdf
    Russ
    Xserve G5 2.0 GHz 2 GB RAM   Mac OS X (10.4.8)   Apple Hardware RAID, ATTO UL4D, Exabyte VXA-2 1x10 1u

  • Virtual Desktop Apps and Snow Leopard Upgrade

    I'm currently running most recent version of Parallels Desktop and I'm concerned that when I upgrade to Snow Leopard I will lose the use of PD until Parallels' updates their software. Unfortunately, I need to use Windows OS for school! Not much on Parallels' website yet.
    I'm just wondering if I should wait to upgrade until parallels folks catch up?

    According to http://kb.parallels.com/en/6637
    Parallels Desktop 4:
    Parallels Desktop 4.0 is compatible with Snow Leopard and can be installed on Snow Leopard Host, please make sure you are using the latest available build 3844. You might, however, experience some minor issues. We will release fully compatible Parallels Desktop 4 build to be installed on Snow Leopard soon.
    We have following know issues with PD4 build 3844 and Mac OS X Snow Leopard:
    1. Host Snow Leopard.
    - QuickLook plugin crashes when trying to do preview on PVM bundle (crash invisible for user)
    - Updater download but fail to install PD4 updates (workaround – close autoupdater and run installer manually)
    - Mounter/Explorer fail to open PD4 disk images
    - iPhone client fail to connect
    - Taking snapshots very slow on host Snow Leopard
    - Opening a web link from Windows in Mac Safari using Shared Internet Applications feature results in appending garbage to the link
    - Snow Leopard 64bit host KP when connecting USB device
    Depending how important windows is to you it might be worth waiting.

  • Setting Up Virtual Hosts

    Presently I've got Mountain Lion and Mountain Lion Server.app running and successfully hosting a live website.  I've got mail running fine and profile manager, but I've not yet been able to figure out how to host a secondary site on a subdomain of my primary domain (though I suppose www is technically a subdomain).
    I'm guessing the main thing I don't understand is if I need a secondary Primary Zone and other DNS settings requirements.  Also, anything else I need to do inside Server.app and possibly any items that need to be taken care of in Terminal.  I sure wish someone was doing tutorials that went beyond the inital domain out there, but I'm not seeing them.
    I just need the steps to walk through, or a link to a tutorial, that I could use.
    Thanks in advance!!!

    Yes, www.example.com needs a translation that leads to an IP address, as does xyz.www.example.com.
    Here's a writeup on DNS on OS X Server and here's one on Apache virtual hosting on OS X Server.
    There are a number of ways to set up internal DNS — I'm here assuming you're using NAT — and external DNS. 
    In general, I'd recommend using one registered domain inside and another registered domain outside, and a firewall that can "reflect" references to your external IP address back into your internal network.  This means you can maintain your internal (private) DNS completely separately from external (public) DNS. 
    But read the articles above and see if you understand a bit better — or if you should have questions on either, ask away.

  • Setting up Virtual Host in Apache for UCM Sites

    As the subject says: I am trying to setup virtual hosts in apache for UCM Sites. Now we are trying to set it up so for every site in UCM we have one ip address. So on the browser when I see someone typed in "http://www.myfirstsite.com" (through the magic of dns they get routed to my server). Once they are at the server in Apache I want to setup virtual hosts so I can redirect user to the proper site residing in UCM.
    Now, it is possible for me to access the sites by doing this "http://myservername/myfirstsite". But what I want to setup in Apache is that when someone types in "http://www.myfirstsite.com" they see which ever site I want them to see in UCM. But mann I just don't know what would be the document root or how would I go about getting the users to SEE what I want them to see. Can anyone help me with this please? Thanks in advance.

    You should be able to stick with the default apache config where it will answer for any hostname and create virtual hosts for each instance with the document root appropriate for that CS instance. Then you should be able use rewrite rules to direct users to the appropriate virtual host depending on what URL they access the server with. Check out the documentation for Apache around mod_rewrite: http://httpd.apache.org/docs/current/rewrite/

  • Mail's spell-checking set automatically to British English in Snow Leopard

    Upon upgrading to Snow Leopard, the system wide spell checker is set to British English. Any ideas how to change it to American English?

    Try going to the "language & text" preferences, select the "text" tab and look for U.S. English.
    I always thought "U.S. English" was an oxymoron.

  • How to set up Virtual Hosts in Apache (OS X Server 10.9)

    I want to host more than one website on my mac mini with OS X Server 10.9
    1.) I edited /etc/apache2/httpd.conf for uncommenting the include line:
    # Virtual hosts
    Include /private/etc/apache2/extra/httpd-vhosts.conf
    2.) I edited /etc/apache2/extra/httpd-vhosts.conf and added:
    <VirtualHost *:80>
        ServerName cammino-al-dente.net
        ServerAlias www.cammino-al-dente.net
        DocumentRoot "/Library/Server/Web/Data/Sites/cammino-al-dente.net"
        ErrorLog "/private/var/log/apache2/cammino-al-dente.net.com-error_log"
        CustomLog "/private/var/log/apache2/cammino-al-dente.net-access_log" common
        ServerAdmin [email protected]
    </VirtualHost>
    <VirtualHost *:80>
        ServerName sutterer.net
        ServerAlias www.sutterer.net
        DocumentRoot "/Library/Server/Web/Data/Sites/sutterer.net"
        ErrorLog "/private/var/log/apache2/sutterer.net-error_log"
        CustomLog "/private/var/log/apache2/sutterer.net-access_log" common
        ServerAdmin [email protected]
    </VirtualHost>
    3.) then I edited /etc/hosts/ to spoof my IP address to the domains:
    127.0.0.1
    localhost
    127.0.0.1
    cammino-al-dente.net
    127.0.0.1
    www.cammino-al-dente.net
    127.0.0.1
    sutterer.net
    127.0.0.1
    www.sutterer.net
    255.255.255.255
    broadcasthost
    ::1        
    localhost
    fe80::1%lo0
    localhost
    Then I restarted Apache...But nothing happens :-(
    I could reach my website cammino-al-dente.net only by using the Server Default-entry, chancing the entry to my cammino...-folder
    Regards
    Fred Mario

    In the /etc/apache2/extra/httpd-vhosts.conf file check this line exists:
    NameVirtualHost *:80
    This solve same issue for me.
    I hope it's help.

  • Unable to set up a dual boot for Snow Leopard and Lion

    I'm running an early 2011 MacBook Pro.  I originally ran this machine with Snow leopard for quite a while.  I've got 8 GB RAM and lots of free space on my hard drive.  I upgraded to Lion and it works well.  But I want to boot to Snow Leopard from an external drive to run some old Rosetta apps.  However, I couldn't run the Snow Leopard installation disk on the Lion Machine.  When I tried to boot to the installation disk, I would get a beeping sound during startup, three beeps in a row - repeating, and it would not boot.  So I connected the external to another machine running Snow Leopard and I installed a new version of Snow Leopard on the external drive.  But my Lion machine will not boot from that external.  I am able to select the Snow Leopard drive in the Start Up Disk pane in the prefs. But when I restart, I just get the three beeps.  I must be missing something here.  Any help would be appreciated.

    Not in cases when the computer successfully boots to one OS but produces three beeps when an attempt is made to boot it to another. If it really was a RAM problem that serious, the computer wouldn't get as far as checking the OS version, and it has no problems booting Lion. In the event of a minor RAM problem, it wouldn't produce three beeps like that at all.
    (67955)

  • Facetime error using OS 10.6.8 (snow leopard) "the server encountered an error processing registration"

    I can't seem to manage to get logged into facetime on my MacBook Pro using OS 10.6.8, Snow Leopard. It keeps giving me the error of "the server encountered an error processing registration, please try again later" Well two days later its the same issue, can someone please help!! I see a lot of the fixes on here are for the upgraded operating system, and everyone seems to have had snow leopard work fine...why cant I!!! help the old school op system user PLEASE!! :-)

    I've been trying to get an answer to this problem for MONTHS.  I upgraded both my iMac and my MacBook Pro to Mountain Lion, and ever since, FaceTime and iMessage stopped working.  I got the "Server encountered an error . . ." So, I called Apple "support" and they claimed they haven't heard of this issue.  I said I find it hard to believe since it's apparently a huge problem for tons of users and is all over the Apple forums.  After spending an hour on the phone with "support", they said they had to pass i on to a senior engineer and they'd call me back within 2 days with an answer.  After waiting a week, I decided to go to the place where I should have gone before, the place where all questions can be answered, even those too advanced for Apple, that place . . . YouTube.
    Fixing the time issue didn't work for me, nor did any other solution that has been posted on the boards.  Yet after watching a 1:24 video on YouTube, both FaceTime and iMessage now work for me.
    Here's the solution which WILL work.
    You do need to first make sure your date/time settings are correct and set to adjust automatically.  But doing just this step will not fix the problem.
    Open Finder, click on "Go" at the top menu, then select "Go To Folder"
    Type in    /etc     and hit enter
    You'll see a file called "hosts".  Drag that file to your desktop.
    Right click on that file and open with Text Edit
    Select all the text in that file, delete it and replace it with the text below, exactly as it is below.  Then save the new hosts file (just exiting will save it). And then drag that new hosts file back into the /etc folder to replace the old one.  After that, your FaceTime and iMessage will work, no thanks to Apple.
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost

  • Tiger clients having difficulties accessing Snow Leopard update server

    Greetings! I have about 500 Macs in my network, running Tiger, Leopard, and Snow Leopard. I just installed a transparent Snow Leopard (Mac mini, 10.6.7) software update server. The update server sits within my network, with my internal DNS server directing all requests to it. The update server uses an external DNS server, so it is able to access the Apple server without any issues and download the updates. Leopard and Snow Leopard clients are able to access it with no issues and download updates.
    My Tiger clients, however, are not. When a Tiger client tries to access the update server through Software Update, it displays the message "A networking error has occurred: Error NSURLErrorDomain - 1100 (-1100). Make sure you can connect to the Internet, then try again." I tested this on about a half dozen Macs on different VLANs, including one set up on the same VLAN as the server. Several things: 1) the Tiger clients CAN access the network, network resources, and browse to the software update server's index.sucatalog file using a browser; and 2) the update server has no log entry indicating a connection was attempted by the Tiger client. (It does, however, show plenty of activity by Leopard and Snow Leopard clients.)
    If I enter the following command on one of my Tiger clients, it CAN access the update server:
    defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://swscan.apple.com:8088/index.sucatalog"
    And the update server posts a log entry acknowledging the access. However, I get a message on the client that the software is up to date. The software is not. I tried to update a PowerPC G4 with a fresh installation of 10.4, and I KNOW it needs updating! I copied and enabled all update packages to my server, and I have seen the necessary updates in the list. My clients are unmanaged.
    So, after a morning of testing, trial, error, and digging around log files, I've concluded the following:
    1. My software update server is not automatically redirecting Tiger clients appropriately (the network error message)
    2. The server's index.sucatalog either does not contain the updates list for Tiger clients, or the Tiger clients are not processing it correctly.
    So, my questions are, what do I need to do on my server to redirect the Tiger clients appropriately (because it totally defeats the whole purpose of networking to touch every client and change the software updates .plist file), and what file do Tiger clients need to be directed to to get the appropriate updates list? I've looked at the swupd.conf file; it does not have a redirect for Tiger clients, so I added one (directing it to index.sucatalog), but it did not make any difference.
    At this point, I am perplexed. Does anyone have any suggestions? I have read the Mac OS X Server System Imaging & Software Update Administration Version 10.6 Snow Leopard manual, and it was not helpful. I've also searched extensively on Google and found little helpful information.
    Thank you for any assistance you can provide.

    Searching on the net brought me to the same solution that Mr. Hoffman found as well, I was a bit skeptical at first but since he recommended it, and all my other attempts failed, it was a last resort and I have some additional notes of my own for a successful solution. Read the two links below first before doing anything, as they contribute to the solution in tandem.
    http://forums.macrumors.com/showpost.php?p=7221295&postcount=20
    http://forums.macrumors.com/showpost.php?p=9081641&postcount=28
    I should probably just create an entirely new post with all of the steps that worked for me, but it's rather straightforward nonetheless.

  • Snow Leopard VPN server

    Is it possible to make a VPN server through Snow Leopard even if I don't have the server version of Snow Leopard? Thanks

    I appreciate the fact that you're trying to help, but I think you assume that I know more then what I do. I had originally asked "What is the server address that they are always talking about? Is that my ip address on the internet or my ip address on my local network?"
    Telling me that "They do elaborate...specifically they say "Enter the 'Server Address' of your computer running iVPN" still does not help as I still do not understand what the server address is(ip address on the internet or local network). As for a host name for my computer... well I won't get into that.
    Thanks for trying to help. Take care.

  • Can you Netboot Client 10.6.6 Snow Leopard to Server 10.4.11 tiger???

    I have gathered an image of Snow leopard using SIU 10.4 with no problems. I have also created a new install image and new boot image with the gathered snow leopard dmg, but I am unable to netboot to the tiger server from snow leopard. I was wondering if this was possible?
    Thanks

    You can host a 10.6.x image from a 10.4 server, but you will not be able to create a valid 10.6 image using the 10.4 tools.

Maybe you are looking for

  • Doubt in Transaction se63

    Hi,     Can any one help me out with transaction se63. ie why it is used , if at all it is used for language translations then how to carry on the process? Thanx in advance.

  • Spell Check in Mail not working

    I'm back.  Still no luck getting spell check to work.  With all the things I've tried, I'm sure it is now isolated to a operating system based problem.  The spell check on InDesign works, but mac mail, text edit, and Open Office.org which all access

  • Temps Files and Desktop Clutter

    This is my first Mac and learning the quirks can be challenging at times. I would like to stop the temp files from saving to my desktop, as I am getting really tired of having to delete 10-15 files every single day (help for this on the Windows side

  • Restore bookmarks and toolbar from backup

    I recently had to re-install my OS X software and other applications onto my Powerbook. Before doing so, I copied the entire hard drive onto an external hard drive. I now want to go back and transfer my bookmarks and items that I had added to the Saf

  • Send to iDVD

    Im using fairly hi-res photos in a slideshow that I want to send to iDVD, but the result in iDVD appears to be 640x480, which looks blocky and defeats the purpose of using hi-res in the first place! How can I get this to work? I hope I don't have to