logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: [solved] xampp Virtual Hosts error
Author
AndrePaulo



Joined: 12 Mar 2016
Posts: 7
Location: Portugal

PostPosted: Sat 12 Mar '16 14:58    Post subject: [solved] xampp Virtual Hosts error Reply with quote

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

PostPosted: Sat 12 Mar '16 16:22    Post subject: Reply with quote

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

PostPosted: Sat 12 Mar '16 17:15    Post subject: Reply with quote

http://apaste.info/Fej
I forgot to add it, sorry.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 12 Mar '16 17:52    Post subject: Reply with quote

See no crash in the log.
Back to top
AndrePaulo



Joined: 12 Mar 2016
Posts: 7
Location: Portugal

PostPosted: Sat 12 Mar '16 17:56    Post subject: Reply with quote

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

PostPosted: Sat 12 Mar '16 18:00    Post subject: Reply with quote

This is what i used:
https://httpd.apache.org/docs/2.4/vhosts/examples.html#purename
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 13 Mar '16 13:36    Post subject: Reply with quote

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

PostPosted: Sun 13 Mar '16 15:26    Post subject: Reply with quote

'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

PostPosted: Sun 13 Mar '16 15:33    Post subject: Reply with quote

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

PostPosted: Sun 13 Mar '16 15:51    Post subject: Reply with quote

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

PostPosted: Sun 13 Mar '16 16:13    Post subject: Reply with quote

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


Reply to topic   Topic: [solved] xampp Virtual Hosts error View previous topic :: View next topic
Post new topic   Forum Index -> Apache