Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Apache web forwarding problem on windows
PostPosted: 2011-01-06 01:22 
Senior user
Senior user
User avatar

Joined: 2009-10-20 16:33
Posts: 3182
Location: England
I have just tried to forward a domain name to a domain hosted on my home server. First time I've tried this.
I get apache message "You don't have permission to access / on this server." when I try to goto the domain being forwarded.

Anyone got any ideas how to stop that from happening. I guess its an apache conf setting but haven't a clue which.
Domains are hosted at 123-reg and I just specified non framed web forwarding to domain on my PC.

Thanks

_________________
An old dog learning new tricks...


Top
 Profile  
 
 Post subject: Re: Apache web forwarding problem on windows
PostPosted: 2011-01-06 02:11 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 11906
Location: 'The Outback' Australia
What user do you have Apache running on on your home pc?
Does that user have read and execute permissions for the folder where your web site is?

It's been a while, but I remember having to modify users and permissions for my Apache web server at home.

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: Apache web forwarding problem on windows
PostPosted: 2011-01-06 02:28 
Senior user
Senior user
User avatar

Joined: 2009-10-20 16:33
Posts: 3182
Location: England
I don't think its user permissions. I tried setting to admin and no difference. I'm running on W2K. The site being forwarded to works fine. The request tries to access my server but it looks like it is using the domain that is being forwarded and not the domain it is being forwarded to.

_________________
An old dog learning new tricks...


Top
 Profile  
 
 Post subject: Re: Apache web forwarding problem on windows
PostPosted: 2011-01-06 04:57 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 11906
Location: 'The Outback' Australia
OK
Looking again at your error message
percepts wrote:
I get apache message "You don't have permission to access / on this server." when I try to goto the domain being forwarded.

Is this a config error at the end where you are doing the forwarding. One too many '/' perhaps?

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: Apache web forwarding problem on windows
PostPosted: 2011-01-06 05:23 
Senior user
Senior user
User avatar

Joined: 2009-10-20 16:33
Posts: 3182
Location: England
no that wasn't the problem. I think I have some problems with my apache conf file which has worked fine till now but I had never tried anything clever with it. But now I try this simple web forward and it doesn't work.
To get around it cos I don't understand the myriad of apache directives, I have put the old domain back into my conf file and used a redirectmatch to send it to my new domain. This works on a test domain and should work when my new domain has dns propogated fully.

Thanks for help anyhow.

p.s. one reason the forbidden message is what you get if you set indexes to -indexes so that directory listings aren't shown. I think the redirect may not have been pointing where it should have been but problem solved for now.

_________________
An old dog learning new tricks...


Top
 Profile  
 
 Post subject: Re: Apache web forwarding problem on windows
PostPosted: 2011-01-06 15:00 
Senior user
Senior user
User avatar

Joined: 2009-10-20 16:33
Posts: 3182
Location: England
I'm wondering if or how I should set my hosts file on w2k. I had to include my domain for hmailserver and originally set it to 127.0.0.1 same as localhost.
I also set my other domains in hosts file using 127.0.0.1 and they work from apache OK. But I'm wondering if they should really be set to my dedicated IP number which have something to do with original problem I had?

Any clues on what IP I should be using in hosts fie and whether I even need hosts records for my other domains?

_________________
An old dog learning new tricks...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: jimimaseye and 2 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group