Apache multiple DocumentRoot
Use Alias: Alias /ABC/ /var/www/ABC/ Alias /PQR/ /var/www/PQR/ Leave the document root pointing to /var/www/Others/index.php. It could do the trick. 🙂
Use Alias: Alias /ABC/ /var/www/ABC/ Alias /PQR/ /var/www/PQR/ Leave the document root pointing to /var/www/Others/index.php. It could do the trick. 🙂
allow from all will not work along with Require local. Instead, try Require ip xxx.xxx.xxx.xx For Example: # New XAMPP security concept # <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Require local Require ip 10.0.0.1 ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>
Watch that the directory where your web application is living, is not included in another parent directory which has restricted FollowSymLinks. The solution is to enable FollowSymLinks at the top directory (parent directory) or move your web application to a directory outside of the scope of the “no FollowSymLinks” in parent directory. For example, the … Read more
I have actually followed this example and it worked for me 🙂 NameVirtualHost *:80 <VirtualHost *:80> ServerName mysite.example.com Redirect permanent / https://mysite.example.com/ </VirtualHost> <VirtualHost _default_:443> ServerName mysite.example.com DocumentRoot /usr/local/apache2/htdocs SSLEngine On # etc… </VirtualHost> Then do: /etc/init.d/httpd restart
Add your virtual hosts to the first line: 127.0.0.1 localhost test.local work.local yii.local And remove the last line. That should do the trick. Your vhosts are now an alias for localhost. It’s not a good idea to have the same IP-address in multiple lines. This just confuses the DNS-cache.
The documentation states that it is not possible: … Lines that begin with the hash character “#” are considered comments, and are ignored. Comments may not be included on the same line as a configuration directive …
minimum configuration for your .htaccess to work: AllowOverride FileInfo Options allowing all configuration will work as well: AllowOverride All
See if you are able to access/list the ‘/icons/’ directory. This is useful to test the behavior of “Directory” in Apache. For example: You might be having the below configuration by default in your httpd.conf file. So hit the URL IP:Port/icons/ and see if it lists the icons or not. You can also try by … Read more
Just run setup_xampp.bat from shell (shell from XAMPP control panel)and the paths should be set automatically for the portable version of XAMPP for windows. It has worked for me.