Make sure to change the DocumentRoot, ServerName and Directory location according to your needs. ServerAlias ErrorLog "/private/var/log/apache2/-error_log"ĬustomLog "/private/var/log/apache2/-access_log" common Pankajs-MacBook-Pro:~ root# vi /etc/apache2/extra/nfĪdd following configuration for a new VirtualHost and save it. We can proceed now to HTTPD virtual hosts file. Now when Apache will load the configuration file, it will also load the virtual hosts configuration file. Pankajs-MacBook-Pro:~ root# vi /etc/apache2/nf To enable VirtualHosts, we need to make some changes in Apache Configuration file (nf). Default location for Apache web server project files is /Library/WebServer/Documents/ which is not a convenient place to keep our project files, also we will have to access it in browser with localhost, so I decided to create my own virtual host pointing to my development directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |