http://asecasiasdi/ketracker (need to remove the server)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

http://asecasiasdi/ketracker (need to remove the server)

Postby homer.favenir » 30. January 2008 09:34

my server's name is asecasiasdi...
and my php folder is ketracker...
and my document root is C:/Program Files/xampp/htdocs ...

when i need to go to ketracker i must type http://asecasiasdi/ketracker
and my web application will appear but the server's name (asecasiasdi) is always in myaddress bar with the ketracker...my address bar looks like this...http://asecasiasdi/ketracker....
how can i remove asecasiasdi and leave ketracker...like this...http://ketracker..

any help pls...
thanks
:roll:
Take Nothing But Pictures;
Leave Nothing But Footprints;
Kill Nothing But Time;
homer.favenir
 
Posts: 16
Joined: 25. October 2007 20:10
Location: Manila, Philippines

Re: http://asecasiasdi/ketracker (need to remove the server)

Postby Izzy » 31. January 2008 01:12

homer.favenir wrote:my server's name is asecasiasdi...
and my php folder is ketracker...
and my document root is C:/Program Files/xampp/htdocs ...
Change the server name to ketracker in your httpd-vhosts.conf file.

For example - as I did not see you post too many relevant details.
<VirtualHost *:80>
ServerName ketracker
DocumentRoot "C:/Program Files/xampp/htdocs/asecasiasdi/ketracker"
<Directory "C:/Program Files/xampp/htdocs/asecasiasdi/ketracker" >
the rest of the host details here
</VirtualHost>
Or to make it more simple, move the ketracker directory into the htdocs directory so the path in the 2 items above would be:
C:/Program Files/xampp/htdocs/ketracker

And edit the Windows hosts file and add or change this:
127.0.0.1 ketracker

You must have set up the original ServerName asecasiasdi so you will understand what you have to do and where all the files are.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby homer.favenir » 31. January 2008 03:04

my virtualhost looks like this:

<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host.example.com
## DocumentRoot /www/docs/dummy-host.example.com
## ServerName dummy-host.example.com
## ServerAlias www.dummy-host.example.com
## ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>

##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>

===========

should i remove the pound sign?
what line should i change and replace with?

thanks
Take Nothing But Pictures;
Leave Nothing But Footprints;
Kill Nothing But Time;
homer.favenir
 
Posts: 16
Joined: 25. October 2007 20:10
Location: Manila, Philippines

Postby homer.favenir » 31. January 2008 04:24

this is my vhost now...
<VirtualHost *:80>
ServerAdmin homer.favenir@asecph.com
DocumentRoot "C:\Program Files\xampp\htdocs\KETracker" <Directory "C:\Program Files\xampp\htdocs\KETracker">
ServerName \\asecasiasdi
ServerAlias www.dummy-host.example.com
ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
</VirtualHost>

##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>

================
question: what windows host files are you referring to?

thanks
Take Nothing But Pictures;
Leave Nothing But Footprints;
Kill Nothing But Time;
homer.favenir
 
Posts: 16
Joined: 25. October 2007 20:10
Location: Manila, Philippines

Postby Izzy » 31. January 2008 04:29

Your vhost file is incorrect - I will get to that file later.

First, how and where did you set up XAMPP to use the domain name (ServerName) asecasiasdi ?

BTW the Windows hosts file is located here:
C:\WINDOWS\system32\drivers\etc\hosts
simply drag it into your text editor for reading and editing.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby homer.favenir » 31. January 2008 12:49

i installed it on our server (asecasiasdi) and im making web applications also in this server. but i have to type asecasiasdi to go to my ketracker folders.

thanks for the reply
Take Nothing But Pictures;
Leave Nothing But Footprints;
Kill Nothing But Time;
homer.favenir
 
Posts: 16
Joined: 25. October 2007 20:10
Location: Manila, Philippines

Postby homer.favenir » 06. February 2008 04:27

where can i learn how to do my topic?
is there a website that can teach me how?

thanks in advance...

:?:
Take Nothing But Pictures;
Leave Nothing But Footprints;
Kill Nothing But Time;
homer.favenir
 
Posts: 16
Joined: 25. October 2007 20:10
Location: Manila, Philippines


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 80 guests