I'm having a challenge with Apache virtual host configuration on MAC.
For my setup, I've added 127.0.0.1 test.wp
to my /private/etc/host
file and included it by uncommenting the Include etc/extra/httpd-vhosts.conf
line in the lampp/etc/httpd.conf
file.
I've also edited my lampp/etc/extra/httpd-vhost.conf
file with the virtual host configuration below;
<VirtualHost *:80>
ServerName test.wp
DocumentRoot "/opt/lampp/htdocs/test.wp"
<Directory "/opt/lampp/htdocs/test.wp">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
When I visit http://test.wp
when siteurl
and home
are both defined as http://test.wp
I see It works!
instead of the WordPress site.
On the other hand, when I define both siteurl
and home
as http://test.wp:8080
, I'm able to access the WordPress site at that address.
How can I serve WordPress site at http://test.wp
on the default port 80?