Page 1 of 1

Pls somebody help me with apache!!!

PostPosted: 08. February 2008 21:43
by maceee
Hello , I am dreally desperate since i can't set up my server and don't really know what's wrong.

I use zoneedit got dynamic dns which is correctly updated, and my apachge listen to port 80.

my apache vhosts file is :

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin info@adultsmatches.com
DocumentRoot c:/wamp/www
ServerName adultsmatches.com
ServerAlias www.adultsmatches.com
ErrorLog c:/wamp/logs/error.log
CustomLog c:/wamp/logs/access.log common
</VirtualHost>


my hosts file look like :
127.0.0.1 localhost
127.0.0.1 adultsmatches.com

and have forward 80 port to my ip.

MY isp surely doesn't block incoming 80 traffic.

Apache seems to go correctly online but when i try to access my site from outside my network it redirects to localhost instead of www.adultsmatches.com


Can pls someone tell me if something is wrong?

many thanks in advance[/b]

PostPosted: 08. February 2008 22:35
by Scory
>127.0.0.1 adultsmatches.com

Of course, this is wrong. You have to apply your internal LAN IP instead, for example:

192.168.1.10 adultsmatches.com

It must be the same IP as mentioned in the Routers Port Forwarding.

PostPosted: 08. February 2008 22:47
by maceee
i changed it 10.0.0.2 as is my internal ip and when i forward port 80 from my router it still tries to open localhost instead of adultsmaches.com and when i do not forward port 80 althought it target adultsmatches.com page oen't open.

can you pls help me?

thank you

PostPosted: 08. February 2008 23:43
by Scory
Show us the FULL VirtualHost Configuration (your example above is incomplete and wrong!).

PostPosted: 08. February 2008 23:51
by maceee
i don't have anything ele to vhosts file expect from the comments.

thank you very much

PostPosted: 09. February 2008 00:28
by Wiedmann
but when i try to access my site from outside my network it redirects to localhost
...
Can pls someone tell me if something is wrong?

This redirect is made from your PHP script. Read the script documentation or ask the author of the script, how to configure this script correctly.

PostPosted: 09. February 2008 01:28
by maceee
no..no..it has not to do with the script..it is clearly an apache issue and i knwo tht cause i used to make it work with the same script but this time i do something wrong...

PostPosted: 09. February 2008 01:50
by Wiedmann
it is clearly an apache issue

Why did you think it's an Apache issue?

it has not to do with the script

Why not?
--> The redirect header is definitely set by a PHP script.

BTW:
This is the forum for the XAMPP server package, not for the WampServer package.

PostPosted: 09. February 2008 09:35
by maceee
it is surely apache issue cause i had once configuresd it to play online with the same script without to do anything to the script..

so i am sute it is an apache issue

PostPosted: 09. February 2008 10:09
by Izzy
maceee wrote:it is surely apache issue cause i had once configuresd it to play online with the same script without to do anything to the script..

so i am sute it is an apache issue

As pointed out above. your Apache/PHP problems can't be answered on this XAMPP forum, absolutely not possible.

You need to ask your questions at the forum linked below where you will be sure of getting help:
http://wampserver.com/phorum
They have French and English help forums - good luck with it.

PostPosted: 09. February 2008 14:34
by Scory
maceee wrote:i don't have anything ele to vhosts file expect from the comments.


The few lines above is your full vhost-conf-file? Where is the declaration of localhost (for example)? You must supply at least two different vhosts (I can see only one!).

As localhost and adultsmatches.com are based on different IPs, you have to configure IP-based Vhosts, but youre (incomplete) configuration is NOT IP-Base but Name-based (what causes the problems).

In contradiction to the other members I am pretty sure that the faulty configuration of the vhosts are causing youre problems.