Reputation: 26317
Trying to add this simple code to my httpd.conf but it gets overwritten each time I start the server
Alias /ws /path/to/public
<Directory /path/to/public>
Order allow,deny
Allow from all
</Directory>
There are spots in mamp pro to enter stuff but I can't find any documentation on what they do.
(source: wes.io)
Help?
Upvotes: 2
Views: 7217
Reputation: 22193
The answer might be a little late... but for everyone searching
The first field "Customized virtual host directory Settings will be added to the directory section:
<Directory /path/to/public>
Order allow,deny
Allow from all
#My directory options
</Directory>
The second field "Customized virtual host general settings" will be pasted in the virtual host section:
<VirtualHost *:80>
#My virtual host options
</VirtualHost>
So in your case, just put everything inside the SECOND box and it will look like this with default settings:
<VirtualHost *:80>
ServerName your-servername.dev
DocumentRoot "/your/path/to/public"
<Directory "/your/path/to/public">
Options Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Alias /ws /path/to/public
<Directory /path/to/public>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
You can always check what happened in the following path:
/Users/<YOUR-USERNAME>/Library/Application Support/appsolute/MAMP PRO/httpd.conf
Upvotes: 3