Virtual host doesn't work

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

Virtual host doesn't work

Postby jake41 » 08. May 2015 21:29

I set a virtual host for my project but when I write the url like site.dev the url change to this site.dev/xampp/ and the main page of xampp is open instead of my site.
Can you please tell me what I'm doing wrong??
Thank you.
Code: Select all
NameVirtualHost *
# bank dev
<VirtualHost *>
    ServerName bank.dev
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/BankSystem/bank"
    <Directory "/Applications/XAMPP/xamppfiles/htdocs/BankSystem/bank">
               Options Indexes FollowSymLinks Includes ExecCGI
               AllowOverride All
               Require all granted
    </Directory>
    ErrorLog "logs/bank.dev-error_log"
</VirtualHost>
jake41
 
Posts: 1
Joined: 08. May 2015 21:21
Operating System: mac os maverick/yosemete

Re: Virtual host doesn't work

Postby Nobbie » 18. May 2015 14:13

jake41 wrote:Can you please tell me what I'm doing wrong??
[code]


You are using the wrong name, you enter site.dev, but you configured bank.dev as VirtualHost
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 17 guests