Jump to content

Edit History

JohnDavisGH

JohnDavisGH

I want to set Apache to redirect from the xamp dashboard to my store which is in C:\xampp\htdocs\store

When I go to http://store.com it takes me the xampp dashboard.

Here is my Host File

127.0.0.1	store.com

Here is my httpd-vhost.conf file

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName store.com
  RewriteEngine On
  Rewrite Rule "^store.com$" "store.com\mystore" [R]
  DocumentRoot "C:xampp/htdocs"
  	<Directory "C:/xampp/htdocs">
      Options Indexes FollowSysLinks Includes ExecCGI
      AllowOverride All
      Require all granted
  </Directory>
</Virtual Host>

I also tried to do the following changes and I get HTTP 500 error.

NameVirtualHost *:80

<VirtualHost *:80> 
  Servername store.com
	DocumentRoot "C:xampp/htdocs/mystore"
	<Directory "C:/xampp/htdocs/mystore">
      Options Indexes FollowSysLinks Includes ExecCGI
      AllowOverride All
      Require all granted
    </Directory>
</VirtualHost>

 

ShopDomain is set to store.com

Base URI is set to /mystore/

Any tips?

 

 

JohnDavisGH

JohnDavisGH

I want to set Apache to redirect from the xamp dashboard to my store which is in C:\xampp\htdocs\store

When I go to http://store.com it takes me the xampp dashboard.

Here is my Host File

127.0.0.1	store.com

Here is my httpd-vhost.conf file

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName store.com
  RewriteEngine On
  Rewrite Rule "^store.com$" "store.com\mystore" [R]
  DocumentRoot "C:xampp/htdocs"
  	<Directory "C:/xampp/htdocs">
      Options Indexes FollowSysLinks Includes ExecCGI
      AllowOverride All
      Require all granted
  </Directory>
</Virtual Host>

I also tried to do the following changes and I get HTTP 500 error.

NameVirtualHost *:80

<VirtualHost *:80> 
  Servername store.com
	DocumentRoot "C:xampp/htdocs/store"
	<Directory "C:/xampp/htdocs"store">
      Options Indexes FollowSysLinks Includes ExecCGI
      AllowOverride All
      Require all granted
    </Directory>
</VirtualHost>

 

ShopDomain is set to store.com

Base URI is set to /mystore/

Any tips?

 

 

×
×
  • Create New...