Apache auto-shutdown when creating a virtualhost

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

Re: Apache auto-shutdown when creating a virtualhost

Postby lopandpe » 20. April 2015 20:15

Ok, I've solved the issue that made that localhost went to my app.

But The othr ServerName is not working.

I added as gsmith proposed:
Code: Select all
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
</VirtualHost>
lopandpe
 
Posts: 9
Joined: 18. April 2015 10:23
Operating System: Windows 8

Re: Apache auto-shutdown when creating a virtualhost

Postby Altrea » 20. April 2015 20:40

because your other vhost domain doesn't match your defined host.
read my first post, everything can be read there including a full example.
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: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache auto-shutdown when creating a virtualhost

Postby lopandpe » 20. April 2015 21:12

I have all as you said:

Code: Select all
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@parquewarner.com.local
    ServerName parquewarner.com.local

    DirectoryIndex index.php index.html
    DocumentRoot "C:/xampp/vhosts/parquewarner.com.local/htdocs"

    <Directory "C:/xampp/vhosts/parquewarner.com.local/htdocs">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>

</VirtualHost>



Code: Select all
# localhost name resolution is handled within DNS itself.
   127.0.0.1       localhost
#   ::1             localhost
   127.0.0.1 parquewarner.com.local
   127.0.0.1 www.parquewarner.com.local
   127.0.0.1 parquewarnerbeach.parquewarner.com.local
   127.0.0.1 www.parquewarnerbeach.parquewarner.com.local



But it still search in google :?
lopandpe
 
Posts: 9
Joined: 18. April 2015 10:23
Operating System: Windows 8

Re: Apache auto-shutdown when creating a virtualhost

Postby Nobbie » 20. April 2015 21:24

One question: are you going for the domains from the Xampp PC, or are you trying to to reach the Xampp PC from a different PC in your LAN?
Next question: what happens, if you enter "ping parquewarner.com.local" in terminal (DOS Box)?

Finally: do you have TPCIP v4 disabled?
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Apache auto-shutdown when creating a virtualhost

Postby lopandpe » 20. April 2015 22:02

Well, I've take the dog out, and when I've come back, it works!

Thank you all for your patience!
lopandpe
 
Posts: 9
Joined: 18. April 2015 10:23
Operating System: Windows 8

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 172 guests