XAMPP does not serve website outside htdocs on Mac

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

XAMPP does not serve website outside htdocs on Mac

Postby hmd1001 » 20. November 2022 06:00

I have spent quite some time on this, did everything I could, but could not make it work. This is my VHost code

Code: Select all
 <VirtualHost *:80>
    ServerName peshawar.dev
    ServerAlias www.peshawar.dev
    DocumentRoot "/Users/myname/Code/project.co"
    <Directory "/Users/myname/Code/project.co/">       
        AllowOverride all
        Require all granted
    </Directory>
</VirtualHost>


In the httpd.conf, I rename deamon user and replaced it with my actual username as follows

User myname*
Group myname*

This does not work. I get "Object not found". If I created a symbolic folder within htdocs which points to the folder, then I get access denied error. I am not sure what the issue is. Help would be appreciated.
hmd1001
 
Posts: 1
Joined: 20. November 2022 05:51
XAMPP version: 7.4.29-1
Operating System: Mac OS Monterey

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 25 guests