Adding new sites to local host

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

Adding new sites to local host

Postby kirwood » 21. October 2015 11:50

Hi,
I recently switched over to Windows 10 64 bit.
Xampp is installed on D rather than C drive and is fine, I can view all my pre existing websites on my local browsers, Chrome and Firefox but not Edge.
Now I have two new sites.
I added them to the hosts and conf files and saved the files as the correct type but they do not display in any browser. I guess I missed something.
I gather from the forum that Edge is an outstanding issue.
I would prefer to resolve the problem without Edge first and then deal with Edge subsequently.
Looking forward to a response
Regards
Kirwood
User avatar
kirwood
 
Posts: 31
Joined: 03. February 2011 12:07
Operating System: Windows 8 64bit

Re: Adding new sites to local host

Postby Nobbie » 21. October 2015 12:09

kirwood wrote:I guess I missed something.


Probably. Or you did an error.

But we cannot see your configuration, what makes it impossible to give any hint.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Adding new sites to local host

Postby kirwood » 21. October 2015 18:57

This cinfiguration is similar to 14 other web sites, all of which are functioning
<VirtualHost *:80>
DocumentRoot "D:/reputationmanager"
ServerName reputationmanager
<Directory "D:/reputationmanager">
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:/protectyourgoodname"
ServerName protectyourgoodname
<Directory "D:/protectyourgoodname">
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

Here is the host file
127.0.0.1 localhost
::1 localhost
127.0.0.1 kim
127.0.0.1 alexpledger
127.0.0.1 t2c
127.0.0.1 fhm
127.0.0.1 welkome
127.0.0.1 bootstrap
127.0.0.1 ckmedia
127.0.0.1 phpcs5
127.0.0.1 lead-on
127.0.0.1 reputationmanager
127.0.0.1 protectyourgoodname
User avatar
kirwood
 
Posts: 31
Joined: 03. February 2011 12:07
Operating System: Windows 8 64bit

Re: Adding new sites to local host

Postby JJ_Tagy » 21. October 2015 19:09

Looks like you are mixing 2.2 and 2.4 directives in same conf. As for the issue with Edge, see my response in the other thread with my theory.
viewtopic.php?f=16&t=71992
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Adding new sites to local host

Postby Nobbie » 21. October 2015 19:40

kirwood wrote:This cinfiguration is similar to 14 other web sites, all of which are functioning


Yes, maybe, but i dont know even one of them. Do you want to have my help or not?

And "similar" means only similar, quite not the same.

P.S.: The option

Code: Select all
Order Allow,Deny


is a very strange one, usually it is

Code: Select all
Order Deny,Allow


If you think, there is actually no difference, you are completely wrong. You should read about the Order Clause.

Finally, it is a rather poor description "they do not display in any browser". Please provide more precisely information. Which URLs do you enter, what (exactly!) happens?
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Adding new sites to local host

Postby kirwood » 22. October 2015 17:11

Hi Nobbie,
If I type fhm/ into my browser I get the fully functioning home page of the site defined here
<VirtualHost *:80>
DocumentRoot "D:/FullHouseMarketing"
ServerName fhm
<Directory "D:/FullHouseMarketing">
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>

If I type into the browser reputationmanager/ as defined here
<VirtualHost *:80>
DocumentRoot "D:/reputationmanager"
ServerName reputationmanager
<Directory "D:/reputationmanager">
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
I get
This web page is not available
ERR_NAME_NOT_RESOLVED

The context is the same, specific names are different. I think that fits the definition of similar. The first works, the second does not.

I have tried "Order Allow,Deny" in the way you suggest. Unfortunately that did not appear to make a difference.
This was all done on a Chrome browser.

Hi JJ_Tagy
I did see that post. Sadly more heat than light. I cannot get Edge to display any locally hosted site any way.
User avatar
kirwood
 
Posts: 31
Joined: 03. February 2011 12:07
Operating System: Windows 8 64bit

Re: Adding new sites to local host

Postby Altrea » 22. October 2015 17:21

please open the windows commandline and send the following command
Code: Select all
ping reputationmanager
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Adding new sites to local host

Postby Nobbie » 22. October 2015 21:33

kirwood wrote:This web page is not available
ERR_NAME_NOT_RESOLVED


That error means, that "reputationmanager" is a completely unknown name for your WIndows. This does not even affect your Xampp configuration (it is even not necessary to start Apache), it is a plain Windows / TCPIP problem.

You have either a typo in your hosts file, or Windows cannot assign more than 10(?) names (or so) to the IP 127.0.0.1

Try to remove some of the other names, but first of all look, that you spelled everything correctly.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Adding new sites to local host

Postby kirwood » 27. October 2015 14:56

Thanks everyone. Problem solved.
With Win 64bit it appears I have 4 hosts files. The really old file in the 32bit system seems to override the others. Updating that resolved the problem.
User avatar
kirwood
 
Posts: 31
Joined: 03. February 2011 12:07
Operating System: Windows 8 64bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 58 guests