Reply to comment

Arnaud Ligny's picture
Arnaud Ligny - Fri, 16/07/2010 - 10:57:

In my opinion, the cleanest solution is to use vhost configuration :

# main website
<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>

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options