Re: newbie -help!: multiple local domains under apache] (agai n)
| From: | David Robley | Date: | Thu, 17 Aug 2000 01:07:57 +0000 |
| Subject: | Re: newbie -help!: multiple local domains under apache] (agai n) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12134@lists.php.net to get a copy of this message | ||
On 16 Aug, Nick wrote:
> Kurt Boyer wrote:
>
>> Nick,
>>
>> Some questions for you:
>>
>> 1) On the line that says: NameVirtualHost 222.222.222.222:8081 ,
>> have you changed the IP address to your server's IP address?
>> For example, my IP is actually 205.216.147.36:8081 . The
>> 222 stuff is just made up for an example only.
>>
>> 2) On the lines that say: ServerName badboy.carrierworld.com ,
>> have you changed it to reference your actual server name?
>> Badboy is just an example. When I log into one of my
>> server's, I see the following:
>>
>> Digital UNIX V4.0F (Rev. 1229); Wed Dec 29 22:14:14 MST 1999
>> zapper:/home/dvlp/kboyer>
>>
>> That tells me that "zapper" is the name of my server.
>
> Aha. I just figured out what i was doing wrong. I actualy only have one
> machine, and i was trying to serve the pages i wrote on it back to myself on
> that machine for debugging purposes. I have Linux RHat 6.2 and did the
> worksattion installation, which means i do not actually have a DNS server set
> u[p opn my machine, or an IP address other than what i defined in
> "hosts"...... I guess that means that i can't use virtual hosts...(told you i
> was a newbie :p)
>
> I could try and install a dns server on my machine to do what i specified
> above; do you think it is worth it though ? The thing is i do have quite a
> few concurrent sites i would like to test, and to avoid me having to change
> the paths i use in my scrtipts each time i changed server (ie when i send the
> sites to the internet hosts), i was hoping to use relative paths (instead of
> /home/carrierworld/forms/script.php, use just /forms/scripts.php, and set the
> server path to be /home/carirerworld/; this is useful bweecause the path to
> our site on the internet host is smthing like /home
> /WWW8/carrierworld.com/htdocs/, so all the relative paths would be relative
> to the root folder of the site, namely /home/WWW8/.carrierowlrd.com/htdocs
> for the server and /home/carrierworld/ for me....)
>
> The only way i can think of doing that would be to change the server
> directory in httpd.conf each time i want to debug a different website and
> restart apache........ surely there must be a better way ?
>
> Nick
>
You shouldn't need DNS if you have correct entries in your /etc/hosts
for each of the virtual domains you want to run.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA