Any addresses including "localhost", "192.168.0.4", and "test.dns.com" are redirected to "localhost/dashboard", "192.168.0.4/dashboard", and "test.dns.com/dashboard".
These are my settings
1. at /etc/httpd.conf
- Code: Select all
DocumentRoot "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
</Directory>
2. at httpd-vhosts.conf
- Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@server2.net
DocumentRoot /var/www/html/gold
ServerName localhost.gold
ServerAlias www.localhost.gold
<Directory /var/www/html/gold/>
Order allow,deny
Allow from all
</Directory>
CustomLog "logs/localhost.gold_access_log.%Y-%m-%d 86400 +540" common
ErrorLog "logs/localhost.gold_error_log.%Y-%m-%d 86400 +540"
</VirtualHost>
3. at apache2/conf/httpd.conf
- Code: Select all
Alias /bitnami/ "/opt/lampp/htdocs/"
Alias /bitnami "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Please let me know what I am wrong.
Any helpful comments would be appreciated.
Thanks in advance.