Apache Server configuration support - virtualhost without access to httpd.conf

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2007 > virtualhost without access to httpd.conf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author virtualhost without access to httpd.conf
Your Best Friend

2007-07-20, 1:24 am

As I've posted before, I have two domains hosted under one shared
hosting account. The main domain's root is
/home/sites/domain1.com/public_html. I have a second domain,
domain2.com, that's document root is the same folder. I'm wondering if
it's possible to set the document root of domain2.com WITHOUT having
access to the httpd.conf file.


--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **
David McKenzie

2007-07-20, 1:24 am

Your Best Friend wrote:
> As I've posted before, I have two domains hosted under one shared
> hosting account. The main domain's root is
> /home/sites/domain1.com/public_html. I have a second domain,
> domain2.com, that's document root is the same folder. I'm wondering if
> it's possible to set the document root of domain2.com WITHOUT having
> access to the httpd.conf file.
>
>

Are you able to park domain2.com on domain1.com?

--
DM davidm@cia.com.au

The funny .sig is in the wash, I am your replacement.
BKW

2007-07-20, 1:24 am

Right now, domain2 is parked on domain 1. What I want to do is when
domain 2 is reached, I want Apache to forward to another folder, such as
/home/sites/domain1.com/public_html/domain2, but I want it to be
'clean,' meaning I don't want any changes to show in the address bar.

David McKenzie wrote:
> Your Best Friend wrote:
> Are you able to park domain2.com on domain1.com?
>


--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **
David McKenzie

2007-07-20, 1:24 am

BKW wrote:
> Right now, domain2 is parked on domain 1. What I want to do is when
> domain 2 is reached, I want Apache to forward to another folder, such as
> /home/sites/domain1.com/public_html/domain2, but I want it to be
> 'clean,' meaning I don't want any changes to show in the address bar.
>
> David McKenzie wrote:
>

You'd be best off using mod_rewrite for that. Have a read of this link
for a good guide to mod_rewrite:
http://www.workingwith.me.uk/articl...ing/mod_rewrite

--
DM davidm@cia.com.au

The funny .sig is in the wash, I am your replacement.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com