Page 1 of 1

Newbie - Website name

PostPosted: 31. October 2007 10:30
by DaLiMan
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

PostPosted: 31. October 2007 14:36
by LooseCannon
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.

PostPosted: 31. October 2007 17:05
by DaLiMan
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.

PostPosted: 31. October 2007 17:14
by Wiedmann
Now I need to figure out how to direct to the 'htdocs' instead of the 'xampp' directory.

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

PostPosted: 01. November 2007 09:32
by DaLiMan
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

PostPosted: 04. November 2007 23:23
by Ja
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?

PostPosted: 06. November 2007 12:34
by LooseCannon
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.

PostPosted: 09. March 2008 07:29
by gunni49
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.

PostPosted: 14. March 2008 10:52
by Wiedmann
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".