You can achieve this in two ways:
1. Change the Document Root
Edit the Apache configuration file (httpd.conf) and update the default AMPPS www path.
Open httpd.confLocate the following lines:
DocumentRoot "{$path}/www"
<Directory "{$path}/www">
Replace them with your new path. For example:
DocumentRoot "/Users/pc/www"
<Directory "/Users/pc/www">
Save the file and restart the AMPPS server.
Quote Note:
AMPPS Softaculous auto-installer still uses the default internal www directory.
If you install apps like WordPress or Joomla, they will be created in the default location.
To use them in your new directory, you’ll need to manually move or migrate those installations.
2. Use Alias Manager
AMPPS also provides an Alias Manager, which lets you map any folder on your system to a URL.
For example, you can create an alias such that:http://localhost/your_site
points to your custom folder.
This allows you to keep your files outside the default www directory without modifying the main Document Root.
|