Newbie - Website name

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

Newbie - Website name

Postby DaLiMan » 31. October 2007 10:30

Hello, I'm very very new at this so please forgive my noob questions....

I've setup the xampp server and the demo site works fine. :)
So now I can make my website and place it in "C:\xampp\htdocs" but I like my site to be found at "http://BevWeb" instead of my internal IP-adress [10.9.154.11] which refers to the xampp installation anyway....

Can anyone tell me how to do this??
I've looked in this forum and the help-files and found something about virtual-hosts but I do not exactly understand how to make it work.

Gr.
Daniel
DaLiMan
 
Posts: 3
Joined: 31. October 2007 10:14

Postby LooseCannon » 31. October 2007 14:36

Hello and welcome DaLiMan. Another noob here, but I know part of an answer for you, which might help.

If only a limited number of PCs wish to access the site, maybe just your own, you could use the Windows "host" files on each PC. Find this in "C:\WINDOWS\system32\drivers\etc". It has _no_ suffix. Make a backup and edit with NotePad or the like.

At the bottom of this file add "10.9.154.11 BevWeb" without the speach marks and a tab between ip address and domain name.

Typing "http://BevWeb" into your browser should query the web server running at that ip address. This might access the XAMPP welcome page, but you say the demo site is working, so I guess you've a virtual or sub domain configured.

If you want the world in general to find your web site, you must consider domain/website registion etc. If so, please say and if you like, we can talk about domain name registration, ISP's and DNS.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby DaLiMan » 31. October 2007 17:05

OK, this works partly.

When entering http://bevweb I now enter the xampp page.
[ xampp for windows - site ]

Now I need to figure out how to direct to the 'htdocs' instead of the 'xampp' directory.
DaLiMan
 
Posts: 3
Joined: 31. October 2007 10:14

Postby Wiedmann » 31. October 2007 17:14

Now I need to figure out how to direct to the 'htdocs' instead of the 'xampp' directory.

Just delete the "index.php" in "htdocs".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby DaLiMan » 01. November 2007 09:32

Wiedmann wrote:
Now I need to figure out how to direct to the 'htdocs' instead of the 'xampp' directory.

Just delete the "index.php" in "htdocs".


Ah, that simple..... :oops: :oops: :oops:

Thanks!!!
Daniel
DaLiMan
 
Posts: 3
Joined: 31. October 2007 10:14

Postby Ja » 04. November 2007 23:23

DaLiMan wrote:
Wiedmann wrote:
Now I need to figure out how to direct to the 'htdocs' instead of the 'xampp' directory.

Just delete the "index.php" in "htdocs".


Ah, that simple..... :oops: :oops: :oops:

Thanks!!!
Daniel


Well, my problem is similar, I configure the Apache for redirect htdos/blog, but now I need change other Home site, but I don't remember how do that, ¿is the httpd.conf or other?
Ja
 
Posts: 2
Joined: 04. November 2007 23:09

Postby LooseCannon » 06. November 2007 12:34

Ja, are you asking about having multiple web sites on the one XAMPP installation/server?

If so, you could use the main ..xampp\apache\conf\httpd.conf file, but I believe you _should_ use ..xampp\apache\conf\extra\httpd-vhosts.conf.

The httpd-vhosts.conf file can contain the configurations for multiple domains.

Note: if your other "Home site" is not a registered domain (FQDN) then add a line to your host file, as I've stated in the earlier post above. This file ca handle multiple ip/name relationships for access locally.

I hope this helps you remember.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Postby gunni49 » 09. March 2008 07:29

Hi there! I am totally new here. I have leased a dedicated server and I wanna transfer my website (paysite) to this new dedicated server. At first I need to set-up and configure an Apache server because my site is a php site. For newbies in server administration xampp seems to be the only suitable solution to do this. I have seen that xampp creates several directories due to the installation process so I would like to know which settings I need to point my registered domain to the server ip.
I mean how can I ensure that the domainname lookup leads to the website and not to the xampp admin panel?
Thanks in advance for info.
gunni49
 
Posts: 13
Joined: 09. March 2008 06:46

Postby Wiedmann » 14. March 2008 10:52

I mean how can I ensure that the domainname lookup leads to the website

Put your website files into the directory "\xampp\htdocs" and override (or delete) the existing "index.php".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests