Skip to content

Instantly share code, notes, and snippets.

@alokstha1
Created November 14, 2017 08:52
Show Gist options
  • Save alokstha1/ab7cd800f667cfda1b0253292b35101b to your computer and use it in GitHub Desktop.
Save alokstha1/ab7cd800f667cfda1b0253292b35101b to your computer and use it in GitHub Desktop.
Create a sub-domain in the wordpress sub-directory /etc/httpd/httpd.conf
<VirtualHost *:80>
DocumentRoot "/var/www/html/first-wordpress/sub-domani"
ServerName local.wordpress.com.au
ErrorLog "/private/var/log/apache2/wordpress-error_log"
CustomLog "/private/var/log/apache2/wordpress-access_log" common
<Directory /var/www/html/first-wordpress/sub-domani>
Require all granted
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment