Thanks Camelot,
Allow me to provide you some additional details. Here's where I am at now:
{quote:title=Camelot wrote:}
Sure - don't use GoDaddy's domain masking 'feature'.
{quote}
Done. Disabled masking. Currently I have each domain on godaddy 301 forwarded to the webservers IP in the following format:
http://123.456.789.00
{quote:title=Camelot wrote:}
Change the DNS records in your zone so that the web server address points to YOUR IP address (you do have a static IP, right?).
{quote}
1. Yes our webserver has a static IP
2. The webserver DNS record has working forward / reverse lookups.
3. I have
not added the "virtual domains" in to the webserver DNS records. I'm assuming this is part of my issue but I'm not quite sure which record type to add and exactly how to add (serveradmin DNS is strange to me) it if this is the case.
Note I am referring to the webserver DNS records in 10.5.4 and not our university DNS servers. I assume they don't need to be aware of these "virtual domains" since godaddy is forwarding to the functional webserver IP.
{quote:title=Camelot wrote:}
Then setup your web server with multiple sites (Server Admin -> Server -> Web -> Sites), one per domain you're hosting.
{quote}
Done.
First is the webserver default site followed by the virtual hosts which look like this in the GUI
domain name: mydoman.org
host description: a great site
ip address: (my webservers servers ip) 123.456.789.00
port: 80
web folder: /volumes/drive/webfiles/mydomain
Second site is setup the exact same way with obvious changes to web folder and domain name.
{quote:title=Camelot wrote:}
When people lookup your web site address, GoDaddy will return your IP address. The client will then connect to your server and Apache will look at the request to determine which site to serve.
{quote}
So currently I have two issues with this setup...
1. Upon changing godaddy forwarding to just the webservers IP (Instead of myhost.org/sitefiles) It now resolves to my default site regardless of what I type in (virtual host 1, 2, 3, whatever, they all lead to my servers default site).
2. The servers IP is what appears in the address bar regardless of what site I go to (I'm assuming this is because I have not added the virtual host DNS records on the webserver DNS configuration) but that's something I could use some clear instructions on =)
Digging around google, I found some things referencing this issue and saying you had to uncomment a line in /etc/apache2/httpd.conf pointing to /private/etc/apache2/extra/httpd-vhosts.conf
What my httpd.conf file has is:
####
#### The following Include directive is essential for the virtual hosts to be usable.
####
Include "/etc/apache2/sites/*.conf"
So I think something changed from earlier versions of 10.5.4 server because I don't have a /etc/private/apache2/extra directory.
The other common change I saw recommended online was to add my virtual hosts here:
/private/etc/apache2/extra/httpd-vhosts.conf
I think that is another outdated thing because of the note above where it now looks for virtual hosts in: /etc/apache2/sites/*.conf
So in /etc/apache2/sites I have virtual host conf files for each virtual host and:
virtual
hostglobal.conf
(I'm assuming this is the equiv now of httpd-vhosts.conf)?? The only thing inside it is:
# This file is auto-generated by the Server Admin Web
# backend plugin whenever settings are saved.
# The Listen and NameVirtualHost directives are generated
# based on the VirtualHost directive inside
# each site configuration file found in this directory.
# Please add appropriate Listen and NameVirtualHost directives
# if a site is manually edited
# i.e. the site is moved from sites to sites_disabled (or vice versa)
# or the site's Virtual Host ip address and/or port is modified
# Last updated at 2008-10-18 16:26:38 -0700
(my webserver ip masked below)
Listen 123.456.789.00:80
NameVirtualHost 123.456.789.00:80
^^ If I change to "any" in the serveradmin gui for each site virtual host then this becomes *:80 but that didn't help either.
Is this all being caused by the lack of the virtual host as domains in the webserves DNS records? How do I add these in the GUI (Or command line if that's easier). I figured editing /etc/hosts as in the past would work but it did not...
Message was edited by: Shane Depner1
Message was edited by: Shane Depner1