Build, maintain and make your Magento website Evolve
In my opinion, the cleanest solution is to use vhost configuration :
More information about formatting options
Search:
Magento is one of the most innovative and complete e-commerce solutions to implement new generation e-Stores.
In my opinion, the cleanest solution is to use vhost configuration :
<VirtualHost *:80>
DocumentRoot "C:/www/magento/"
ServerName magento.local
ErrorLog "logs/magento.local-error.log"
CustomLog "logs/magento.local-access.log" common
<Directory "C:/www/magento">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
# mobile website
<VirtualHost *:80>
DocumentRoot "C:/www/magento/"
ServerName mobile.magento.local
ErrorLog "logs/mobile.magento.local-error.log"
CustomLog "logs/mobile.magento.local-access.log" common
SetEnv MAGE_RUN_TYPE "website"
SetEnv MAGE_RUN_CODE "mobile"
<Directory "C:/www/magento">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>