AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Mac os x apache change root directory3/20/2024 You are now ready to put files to ~/Sites/ folder and when you go to: you will see those files appear, and if you add a. Then restart apache: sudo apachectl restart In the same file, under the section look for:Īlso edit this file: sudo vim /etc/apache2/users/nfĪnd look for the same line AllowOverride None** and change it to *AllowOverride All I prefer to have it there, as I do not need root permissions to add content to that folder. sudo vim /etc/apache2/nf The first thing I will do is to change the Document root from the default /Library/WebServer/Documents to my Sites folder under my home directory. Of course instead of your-username insert there your real username. First some changes in the main configuration file of Apache.
0 Comments
Read More
Leave a Reply. |