virtualhost without access to httpd.conf

This is a discussion on virtualhost without access to httpd.conf within the Apache Web Server forums, part of the Web Server and Related Forums category; As I've posted before, I have two domains hosted under one shared hosting account. The main domain's root ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2007
Your Best Friend
 
Posts: n/a
Default virtualhost without access to httpd.conf

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 **
  #2 (permalink)  
Old 07-20-2007
David McKenzie
 
Posts: n/a
Default Re: virtualhost without access to httpd.conf

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.
  #3 (permalink)  
Old 07-20-2007
BKW
 
Posts: n/a
Default Re: virtualhost without access to httpd.conf

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:
>> 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?
>


--
Thanks,
Bryan K
bk@bkworksproducts.com.info
To reply, remove .com
** PROUD USER OF THUNDERBIRD **
  #4 (permalink)  
Old 07-20-2007
David McKenzie
 
Posts: n/a
Default Re: virtualhost without access to httpd.conf

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:
>> 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?
>>

>

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/article...ng/mod_rewrite

--
DM davidm@cia.com.au

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0