Labs/Joey/ServerSetup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 68: Line 68:
AddType text/xml .rdf
AddType text/xml .rdf


Also setup any virtual hosts that you might need:
<pre>
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
  ServerName joey.labs.mozilla.com
  RewriteEngine On
  RewriteRule ^/joey\.xpi$ - [L]
  RewriteRule ^/update\.rdf$ - [L]
  RewriteRule ^/(.*)$ https://joey.labs.mozilla.com/$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443>
  ServerName joey.labs.mozilla.com
  DocumentRoot /data/joey.labs.mozilla.com
  SSLEngine On
  php_value apc.enabled off
  <Directory /data/joey.labs.mozilla.com>
    AllowOverride All
  </Directory>
  RewriteEngine On
</VirtualHost>
</pre>




Confirmed users
1,031

edits