Vhosts just not working?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Vhosts just not working?

Postby fredghostkyle » 20. November 2014 23:30

Hi, I have my httpd.conf here: http://pastebin.com/m4ypNMv0

At the bottom of that config is where my vHost information is going (the httpd-vhosts.conf was not working). I have no idea why this is not working.
fredghostkyle
 
Posts: 3
Joined: 20. November 2014 23:27
Operating System: OSC

Re: Vhosts just not working?

Postby Nobbie » 21. November 2014 13:18

fredghostkyle wrote:I have no idea why this is not working.


Really not?

See this line:

#Include etc/extra/httpd-vhosts.conf


What is the "#" doing in the first column? Find it out and you will fix your problem immediately.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Vhosts just not working?

Postby fredghostkyle » 21. November 2014 20:20

Thanks for your mind blowing help!!!!!!!!!!!!! Anyway, I did that, configed it and guess what IT DIDn'T WORK!!!!!!!! So I added it into the httpd.conf (at the bottom, if you fucking looked).
fredghostkyle
 
Posts: 3
Joined: 20. November 2014 23:27
Operating System: OSC

Re: Vhosts just not working?

Postby Altrea » 21. November 2014 22:01

"isn't working" is never a qualified error report.

Anyway i would guess that your DomainName dhs.spvp.im can not get resolved to the correct IP Adress on your local computer.
It is best practice to NOT use the DomainName in the <VirtualHost> Directive directly because there it has no routing functionality.
Change your vhost as follows:

Code: Select all
<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs2"
    ServerName dhs.spvp.im
</VirtualHost>
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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Vhosts just not working?

Postby fredghostkyle » 22. November 2014 04:32

I hate to say it, but all that did was make all my domains go to that directory.
fredghostkyle
 
Posts: 3
Joined: 20. November 2014 23:27
Operating System: OSC


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 17 guests