1

I have recently implemented white labeling, and after changing my VHOSTS setting I have found that some of the URL is stripped, for example:

<VirtualHost *:8166>
   ServerAdmin webmaster@localhost
   DocumentRoot C:\xampp5.2test\htdocs\portal
   ServerName xampp

   <Directory "C:\xampp5.2test\htdocs\portal">
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

is configured like this within apache vhosts. However when one writes localhost:8166 in address bar example:

http://localhost:8166/ url is like this and not

http://localhost:8166/portal

Like above, how can I get it to append the full path to the url

thanks.

bobo2000
  • 1,779
  • 7
  • 31
  • 54

1 Answers1

0

From your explanation just changing the document root should make it:

<VirtualHost *:8166>
   ServerAdmin webmaster@localhost
   DocumentRoot C:\xampp5.2test\htdocs
   ServerName xampp
   RewriteEngine On


   RewriteRule ^/*$ /portal

   <Directory "C:\xampp5.2test\htdocs\portal">
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>
RageZ
  • 26,800
  • 12
  • 67
  • 76