logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Strange forwarding problem
Author
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Mon 09 May '11 0:10    Post subject: Strange forwarding problem Reply with quote

Hi, sorry for my 1st post to be asking for help, but here goes.

I am trying to setup my server to run 3 sites. (it has been running with 2 for a while with no problem)

Site A is in E:\apache
Site B is in E:\apache\siteB
Site C is in E:\apache\siteC

using virtual host in httpd.conf it has worked with site A and B with no problems. However now whenever I try and access site C it forwards it (the url changes as well) to site B.

If I go to the URL of SiteA\sitec it all works fine, just not if I try to access site C from the off. Sad this has been doing my head in for 2 days now.

Please Helps
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Mon 09 May '11 0:11    Post subject: Reply with quote

I forgot to mention, not sure if it makes much difference but my ISP will only provide me with a dynamic ISP, so everthing is routed via Dyn-DNS.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 09 May '11 13:44    Post subject: Reply with quote

Please post your vhost config.

How did you define the DNS? Wildcard DNS? 3 different dyndns?
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Mon 09 May '11 23:05    Post subject: Reply with quote

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin me@mydomain.com
DocumentRoot "E:\Apache\AndyMasterman"
ServerName www.andy-masterman.co.uk
ServerAlias *.andy-masterman.co.uk
<Directory E:\Apache\AndyMasterman\>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin me@mydomain.com
DocumentRoot "E:\Apache\phpbb3"
ServerName beckleystowood.dyndns-web.com
ServerAlias beckleystowood-web.com
<Directory E:\Apache\phpbb3\>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin me@mydomain.com

ServerName jt-tech.dyndns-web.com
ServerAlias jt-tech.dyndns-web.com
ErrorDocument 404 /errordoc-404.html
<directory />
allow from all
</directory>
</VirtualHost>


The trouble is that the .co.uk keeps forwarding to the Beckley site.
I have tried #ing out the Beckley host, the site is still forwarded but displays a 404 message.

This is the 1st non Dyndns provided site I am trying so not sure if it is something to do with that. The .co.uk is still using dyndns as its dns though.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 11 May '11 3:35    Post subject: Reply with quote

Jabberwocky wrote:

<VirtualHost *:80>
ServerAdmin me@mydomain.com

ServerName jt-tech.dyndns-web.com
ServerAlias jt-tech.dyndns-web.com
ErrorDocument 404 /errordoc-404.html
<directory />
allow from all
</directory>
</VirtualHost>


Where's the DoccumentRoot?

In all <Directory> containers, where's the Order? Not sure the missing Order has much to do with anything though.
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Wed 11 May '11 9:16    Post subject: Reply with quote

Thanks for the help mate,

this is the new look


NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin me@mydomain.com
DocumentRoot "E:\Apache\AndyMasterman"
ServerName andy-masterman.co.uk
ServerAlias www.andy-masterman.co.uk
<Directory E:\Apache\AndyMasterman\>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin me@mydomain.com
DocumentRoot "E:\Apache\phpbb3"
ServerName beckleystowood.dyndns-web.com
ServerAlias beckleystowood-web.com
<Directory E:\Apache\phpbb3\>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin me@mydomain.com
Documentroot "E:\Apache"
ServerName jt-tech.dyndns-web.com
ServerAlias jt-tech.dyndns-web.com
ErrorDocument 404 /errordoc-404.html
<directory />
Order Allow,Deny
allow from all
</directory>
</VirtualHost>

Still got the same problem Sad

Whatever it is is accessing "http://beckleystowood.dyndns-web.com/portal.php" straight from the off as I have removed the html file that was redirecting to the php. I have also searched all the E drive for any text that says php3 and portal.php and changed it but is still ongoing.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Wed 11 May '11 9:55    Post subject: Reply with quote

I can open your page http://beckleystowood.dyndns-web.com/portal.php
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Wed 11 May '11 9:58    Post subject: Reply with quote

yep, I wus just playing with the settings. the problem is that andy-masterman.co.uk, forwards itself to http://beckleystowood.dyndns-web.com/portal.php
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Wed 11 May '11 10:03    Post subject: Reply with quote

andy-masterman.co.uk I see Hello World
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Wed 11 May '11 10:03    Post subject: Reply with quote

http://jt-tech.dyndns-web.com/andymasterman/ is what I want andy-masterman.co.uk to look like, "I know, it is an inspired web page at the moment." lol
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Wed 11 May '11 10:05    Post subject: Reply with quote

James Blond wrote:
andy-masterman.co.uk I see Hello World


??? really???? now that is confusing
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Wed 11 May '11 10:08    Post subject: Reply with quote

I just checked on my phone and that shows Hello World....but my laptop forwards itself to beckley....com

Now that is strange.

Thanks for your help guys :-S
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Wed 11 May '11 23:00    Post subject: Reply with quote

Is the web server running on your laptop? Did you edit your hosts file for testing?
Back to top
Jabberwocky



Joined: 08 May 2011
Posts: 9

PostPosted: Fri 13 May '11 22:41    Post subject: Reply with quote

no the web server is part of my home network, it only seemed to affect my laptop, the other computers on the network resolved the site ok
Back to top


Reply to topic   Topic: Strange forwarding problem View previous topic :: View next topic
Post new topic   Forum Index -> Apache