0

How do I add Virtual Hosts on XAMPP? Please help.?

-

Question by Billy Rowe: How do I add Virtual Hosts on XAMPP? Please help.?
I’m trying to add Virtual Hosts on my Webserver for my family.
It is running XAMPP.
How do I add a Virtual Host?
I read all the forum threads on Google, I read the Apache and XAMPP documentation. But, it doesn’t seem to help.
I try everything they say.
I use their examples and try to change every line, but it still does not work.
Anyone have any good sites that helped them?
Or does anyone have a tutorial on this?
Thanks so much

Best answer:

Answer by Tracy L
Well, this tutorial looks pretty good for this.

http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/

Apache is well, apache and basically you add a directory for each “domain” then add a line into the apache.conf or http.conf or httpd-vhosts.conf (depends on version of xampp) file to point to each directory.
you would add something like the following,,

NameVirtualHost *:80

DocumentRoot “drive:/apachefriends/xampp/htdocs”
ServerName localhost

and right after that

DocumentRoot “drive:/apachefriends/xampp/htdocs/sitename”
ServerName sitename.localhost

(that is for xamp version 1.4) yours may well be different, need the version to be specific here!

Once done, you simply restart the httpd service and you should be good to go.

I don’t use this system but do use apache and apache well is apache it really doesn’t care it works the same, Xampp just makes it easy to install etc.
So you can also consult the APACHE doc files.

Have fun, hope that helps

Add your own answer in the comments!

Incoming search terms:

  • add virtual host to xamp
  • adding virtual host in xamp

Share and Enjoy

1

Does a virtual machine need internet security?

-

Question by Brother Steve: Does a virtual machine need internet security?
I’m going to put a virtual machine on my computer. Will the web browser need an anti-virus program or does the one on my host os cover it?

Best answer:

Answer by stormwolf
the internet security on the main machine cannot protect the virtual machine. if you have any data on virtual then yes of course

What do you think? Answer below!

Share and Enjoy

0

index.php works under localhost virtual host but not under another virtual host (WAMP)?

-

Question by Elated: index.php works under localhost virtual host but not under another virtual host (WAMP)?
I have two virtual hosts set up: http://localhost and http://edgeridge. the document root of my wamp server is c:/webs and the application I am running resides in c:/webs/myapp/public/. in myapp folder i have two files (index.php; which just runs the phpinfo() command, and the second is index.html which just has the text “Hello World”)

The following works under the localhost virtual directory:

http://localhost/myapp/public/index.php

http://localhost/myapp/public/index.html

I have set up the document root of the virtual host for http://edgeridge to
c:/webs/myapp/public/

However, when i browse to http://edgeridge, http://edgeridge/index.html works but http://edgeridge/index.php does not work; i get the error 404 page not found code.

I have check the DirectoryIndex to make sure it includes .php for which it does. All settings seem to be set up correctly since it works under http://localhost/myapp/public/index.php.

Any help please, this has been bugging me for the past 3 days… help!!!

Best answer:

Answer by Colinc
Yo may need second directoryindex listing for the other folder. And have you tried using the SAME php file, in case there is an error in the edgeridge php file.

What do you think? Answer below!

Share and Enjoy

0

Error 500, virtual hosts not taking effect?

-

Question by Sam: Error 500, virtual hosts not taking effect?
What could be causing this problem? It says error 500 and inside my logs, it says the following:

[Sat Feb 02 04:27:00 2008] [error] [client 195.242.210.21] File does not exist: /var/www/apache2-default/joomla15
[Sat Feb 02 04:27:00 2008] [error] [client 195.242.210.21] File does not exist: /var/www/apache2-default/cms
[Sat Feb 02 21:38:23 2008] [error] [client 78.129.138.101] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw$

It seems my virtual hosts are not taking effect. How could the host name not be sent? These files not found are files that belong to document roots on the virtual hosts. The ones apache is looking for is in the main doc root.

Best answer:

Answer by General Cucombre
The entry which says “request without hostname” is obviously caused by a bot (or PCs infected by virus) – i.e. an evil program that dumbly scans IP address ranges trying to exploit known vulnerabilities in web servers (mostly Microsoft ones). Don’t worry about that – its is normal “background noise”.

As far as “File does not exist” errors go, it is up to you to know what exactly is causing that – most likely misconfiguration or incorrect links on your site.

What do you think? Answer below!

Share and Enjoy

0

Who Are The Top Webhosting Companies that Allow .HTACCESS Files to be Uploaded to Virtual Server Directories?

-

Question by dante45chicago: Who Are The Top Webhosting Companies that Allow .HTACCESS Files to be Uploaded to Virtual Server Directories?
I need to upload .HTACCESS file to a designated folder but Yahoo Small Business Web Hosting does not allow this. Please tell me of a few “Top Tier” web hosting companies that allow this. Please no “fly by night” or “offshore” web hosts that will be out of business tomorrow, thanks.

Best answer:

Answer by Craig B
I know GoDaddy will allow it.

Know better? Leave your own answer in the comments!

Share and Enjoy

1

Problem creating virtual hosts in apache?

-

Question by soldier: Problem creating virtual hosts in apache?
Hi All, I am trying to create virtual hosts on apache on linux box. My httpd-vhosts.conf is as follows:
NameVirtualHost *:80

ServerAdmin admin@site1.com
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot “/nfs/site1/html”

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

ErrorLog logs/site1/error_log
CustomLog logs/site1/access_log common

Similarly, I’ve another virtual host for site2 whose docroot is “/nfs/site2/html”.

I’ve added the following lines in /etc/hosts file: IP_Address www.site1.com IP_Address www.site2.com Now, If I open browser and type my IP address then it is executing the code in /nfs/site1/html folder. But if I try to access www.site1.com from browser its displaying the message “website cannot be found”. So I used www.site1.com:80, still I get the same error message. Can anyone please help me on this.
Thanks,
Mohan
Hi All,
Thanks for ur inputs. Now I am able to create virtual hosts and they are working fine when I hit them on my pc. Now, if I want to access those virtual sites from other machines what are the steps I have to follow. Can any one please tell me.
Thanks,
Mohan

Best answer:

Answer by Colinc
You either need NameVirtualHost directive, so that the server identifies them by name, or a multiple IP address approach, in which case the AddressVirtualHost is OK. NameVirtualHost is easier to implement, but it does rely on there being a genuine dns record set for each host name. your hosts entries are useless, set UseCononicalName to off.

Give your answer to this question below!

Share and Enjoy

Page 44 of 57« First...102030...4243444546...50...Last »

Powered by Yahoo! Answers