Hi All,
how do you make xampp latest version allow to have websites running on : localhost/sitename in earlier versions it used to work fine with no hassle, now i have to create virtual hosts per website.
any help appreciated.
doomish wrote:now i have to create virtual hosts per website
doomish wrote:Any idea what might be wrong?
Solved!
This worked for me:
open the file
- Code: Select all
sudo vi /Applications/XAMPP/etc/httpd.conf
uncomment line 482
- Code: Select all
# User home directories
Include /Applications/XAMPP/etc/extra/httpd-userdir.conf
save and close the file
open the file
- Code: Select all
sudo vi /Applications/XAMPP/etc/extra/httpd-userdir.conf
replace line 11 with
- Code: Select all
UserDir Sites
replace line 16 with
- Code: Select all
<Directory "/Users/*/Sites/">
save and close the file
restart Apache
that's all!
# User home directories
#Include etc/extra/httpd-userdir.conf
# User home directories
Include etc/extra/httpd-userdir.conf
# Settings for user home directories
#
# Required module: mod_authz_core, mod_authz_host, mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
#UserDir public_html
UserDir Sites
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/Users/*/Sites">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
Users browsing this forum: No registered users and 12 guests