Unable to see host name

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Unable to see host name

Postby neeraj123 » 18. November 2010 15:45

Hi..
I have got Public IP and linked with win2003 server as web server where XAMPP 1.7.1 is installed. My domain is registered with Godaddy where I forwarded domain name to Public IP which is in web server. Now when I put my domain name(e.g. abtest123.com) then it goest to http://abtest.com/xampp and my xampp page opens. Also imp here is near future I will go for virtual hosting with other names on this Public IP only. Pls help in solving this prob.

http.conf entry is

Listen 80
NameVirtualHost xxx.xxx.xxx.xxx:80------- where xxx.xxx.xxx.xxx is my static public IP

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin webmaster@localhost
DocumentRoot D:/xampp/htdocs
ServerName localhost
<Directory "D:/xampp/htdocs">
AllowOverride All
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>

</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName http://www.abtest123.com
ServerAlias abtest123.com *.abtest123
DocumentRoot D:/xampp/htdocs/abtest123/index.html
<Directory "D:/xampp/htdocs/abtest123.com/index.html">
AllowOverride All
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

also my host file entry is

xxx.xxx.xxx.xxx abtest123.com
neeraj123
 
Posts: 2
Joined: 18. November 2010 14:41

Re: Unable to see host name

Postby Nobbie » 18. November 2010 20:23

>DocumentRoot D:/xampp/htdocs/abtest123/index.html

Das ist sowieso falsch, DocumentRoot muss ein ORDNER sein, keine Datei.

Außerdem fehlt die "NameVirtualHost" Direktive, deswegen wird (zum Glück) der zweite VirtualHost nicht angesprochen, sonst gäbe es Fehler wegen des ungültigen DocumentRoot.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Unable to see host name

Postby neeraj123 » 18. November 2010 20:55

wole wrote:
neeraj123 wrote:Now when I put my domain name(e.g. abtest123.com) then it goest to http://abtest.com/xampp and my xampp page opens

Lösche die index.php und erstelle eine eigene index.php mit deinen Inhalten.

Und noch was ... der/dein Server ist offen wie ein Scheunentor, er läd alle Hacker und Script-Kiddys ein dich und deinen PC zu hacken und zum Zoombie in einem Bot-Netz zu machen.

PS: you are in german-board here - question in german -> answer in german.

God luck and welcome the new zoombie :mrgreen:





danke ... könnten Sie mir helfen bei der Sicherung meiner Seite ... jedes Skript oder Anregungen wenden Sie sich bitte
neeraj123
 
Posts: 2
Joined: 18. November 2010 14:41


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 24 guests