Author |
|
Jabberwocky
Joined: 08 May 2011 Posts: 9
|
Posted: Mon 09 May '11 0:10 Post subject: Strange forwarding problem |
|
|
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. this has been doing my head in for 2 days now.
Please Helps |
|
Back to top |
|
Jabberwocky
Joined: 08 May 2011 Posts: 9
|
Posted: Mon 09 May '11 0:11 Post subject: |
|
|
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 09 May '11 13:44 Post subject: |
|
|
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
|
Posted: Mon 09 May '11 23:05 Post subject: |
|
|
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
|
Posted: Wed 11 May '11 3:35 Post subject: |
|
|
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
|
Posted: Wed 11 May '11 9:16 Post subject: |
|
|
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
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: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
Jabberwocky
Joined: 08 May 2011 Posts: 9
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 11 May '11 10:03 Post subject: |
|
|
andy-masterman.co.uk I see Hello World |
|
Back to top |
|
Jabberwocky
Joined: 08 May 2011 Posts: 9
|
|
Back to top |
|
Jabberwocky
Joined: 08 May 2011 Posts: 9
|
Posted: Wed 11 May '11 10:05 Post subject: |
|
|
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
|
Posted: Wed 11 May '11 10:08 Post subject: |
|
|
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 11 May '11 23:00 Post subject: |
|
|
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
|
Posted: Fri 13 May '11 22:41 Post subject: |
|
|
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 |
|