Gossamer Forum
Home : General : Internet Technologies :

Update to httpd.conf...

Quote Reply
Update to httpd.conf...
Hi. I would appreciate as much help here as possible, as its a bit out of my league :)

Basically, I am trying to make a 'default' page, which supports "wildcards" ... i.e http://foo.domain.com would print to domain.com. I won't really go into depth about why I am trying to do this, unless you really need to know (but it won't be that easy to explain).

The ISP recommended the following, but its a little over my head;

Quote:
It should just be a matter of ensuring that the VirtualHost directive for ukexpress.co.uk is listed first in the httpd.conf file, i.e. before entries for any other domains - that way it should be used by default if the host header for the domain is not found in the rest of the list..

TIA for any suggestions/help.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Update to httpd.conf... In reply to
Hi,

Well, one way would be if all the domains point to the same IP (and no other domains on that IP), simply make a single virtualhost for it:

<virtualhost yourip>
...
</virtualhost>

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Update to httpd.conf... In reply to
Thanks for the reply, but I'm lost already :( Remember, I'm an amature at server maintainance Wink Do you know of any good tutorials?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Update to httpd.conf... In reply to
Hi,

Not off hand, except for

http://apache.org/docs/

Basically you want at a minimum:

<VirtualHost 123.123.123.123>
ServerName yourdomain.com
DocumentRoot /path/to/www
CustomLog /path/to/access_log combined
ErrorLog /path/to/error_log
<Directory /path/to/www>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

If you need cgi-bin, then you'll also want:

ScriptAlias /cgi-bin/ /path/to/www/cgi-bin/

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Update to httpd.conf... In reply to
Thanks, I'll have a look at that tomorrow. We have a bit of a storm brewing up outside...so I'm going to finish for the day now.... :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates