Author |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
Posted: Sat 12 Mar '16 14:58 Post subject: [solved] xampp Virtual Hosts error |
|
|
Hey!
I need help. I have a apache server (xampp, self hosted) and i wanted to have 2 different sites on same server. But it can't be local. I'm using No-IP to help me with this and i have site1.noip.com (not the actual domain) pointing to c:xampp/htdocs/site1 and site2.noip.com pointing to c:xampp/htcods/site2
But when i start apache, it gives me an error:
Can someone help me?
Last edited by AndrePaulo on Sun 13 Mar '16 16:13; edited 2 times in total |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Sat 12 Mar '16 16:22 Post subject: |
|
|
xampp says: view (apache) error logs and check Windows Event Viewer for clues.
So, what says it about errors/warnings ? |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 12 Mar '16 17:52 Post subject: |
|
|
See no crash in the log. |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
Posted: Sat 12 Mar '16 17:56 Post subject: |
|
|
The problem is on virtual host. if i delete it, apache runs fine. |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 13 Mar '16 13:36 Post subject: |
|
|
When crash: Any clue in the Apache error.log and /or Windows Event Viewer ?
You can also try to start apache in a Windows Command Prompt:
>httpd -t |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
Posted: Sun 13 Mar '16 15:26 Post subject: |
|
|
'httpd' is not recognized as an internal or external command,
operable program or batch file. |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
Posted: Sun 13 Mar '16 15:33 Post subject: |
|
|
ok, i found httpd.exe on bin folder, and i got this:
(Usually isnt allowed a use of each socket address)
And if i remove the virtual hosts from that file, it runs fine.
EDIT: if i run httpd.exe -t on xampp/apache/bin gives me Syntax OK
|
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Sun 13 Mar '16 15:51 Post subject: |
|
|
Do you have two or more Listen directives in httpd.conf and/or httpd-vhosts.conf ? |
|
Back to top |
|
AndrePaulo
Joined: 12 Mar 2016 Posts: 7 Location: Portugal
|
Posted: Sun 13 Mar '16 16:13 Post subject: |
|
|
admin wrote: | Do you have two or more Listen directives in httpd.conf and/or httpd-vhosts.conf ? |
Yes, i had.
I removed Listen 80 from httpd-vhosts and it is running fine!
Thank you very much!! |
|
Back to top |
|