Page 1 of 1

Adding new sites to local host

PostPosted: 21. October 2015 11:50
by kirwood
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

Re: Adding new sites to local host

PostPosted: 21. October 2015 12:09
by Nobbie
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.

Re: Adding new sites to local host

PostPosted: 21. October 2015 18:57
by kirwood
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

Re: Adding new sites to local host

PostPosted: 21. October 2015 19:09
by JJ_Tagy
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

Re: Adding new sites to local host

PostPosted: 21. October 2015 19:40
by Nobbie
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?

Re: Adding new sites to local host

PostPosted: 22. October 2015 17:11
by kirwood
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.

Re: Adding new sites to local host

PostPosted: 22. October 2015 17:21
by Altrea
please open the windows commandline and send the following command
Code: Select all
ping reputationmanager

Re: Adding new sites to local host

PostPosted: 22. October 2015 21:33
by Nobbie
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.

Re: Adding new sites to local host

PostPosted: 27. October 2015 14:56
by kirwood
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.