Ignore:
Timestamp:
May 30, 2007, 3:00:37 PM (17 years ago)
Author:
andersk
Message:
Modularize scripts.mit.edu main vhost, and fix favicon.ico and 
robots.txt 500 errors on other vhosts.
Location:
server/fedora/config/etc/httpd
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • server/fedora/config/etc/httpd/conf/httpd.conf

    r305 r330  
    245245RewriteEngine Off
    246246
    247 <Location ~ "/(robots\.txt|favicon\.ico)">
    248     RewriteEngine On
    249     RewriteBase /~scripts
    250     RewriteCond %{REQUEST_FILENAME} !-f
    251     RewriteRule .*(favicon\.ico) $1 [L,NS]
    252     RewriteCond %{REQUEST_FILENAME} !-f
    253     RewriteRule .*(robots\.txt) $1 [L,NS]
     247<Location /robots.txt>
     248    ErrorDocument 404 "No robots.txt.
     249</Location>
     250<Location /favicon.ico>
     251    ErrorDocument 404 "No favicon.ico.
    254252</Location>
    255253
     
    263261    ServerName scripts-cert.mit.edu
    264262    ServerAlias scripts-cert
    265     DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
    266     SuExecUserGroup scripts users
    267     UserDir web_scripts
    268     Alias /heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
     263    Include conf.d/scripts-vhost.conf
    269264    Include conf.d/vhosts-common.conf
    270265</VirtualHost>
     
    273268    ServerName scripts.mit.edu
    274269    ServerAlias scripts scripts-test.mit.edu scripts-test 18.181.0.46 18.181.0.57 old-faithful.mit.edu old-faithful scripts3.mit.edu scripts3 18.181.0.53 better-mousetrap.mit.edu better-mousetrap scripts4.mit.edu scripts4
    275     DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
    276     SuExecUserGroup scripts users
    277     UserDir web_scripts
    278     Alias /heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
    279     Alias /src /afs/athena.mit.edu/contrib/scripts/src
    280     Redirect /sql https://scripts.mit.edu/~sql
     270    Include conf.d/scripts-vhost.conf
    281271    Include conf.d/vhosts-common.conf
    282272</VirtualHost>
     
    303293        ServerName scripts-cert.mit.edu
    304294        ServerAlias scripts-cert
    305         DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
    306         Alias /heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
    307         SuExecUserGroup scripts users
    308         UserDir web_scripts
     295        Include conf.d/scripts-vhost.conf
    309296        Include conf.d/vhosts-common-ssl.conf
    310297        SSLCertificateFile /etc/pki/tls/certs/scripts-cert-new.pem
     
    320307        ServerName scripts.mit.edu
    321308        ServerAlias scripts scripts-test.mit.edu scripts-test 18.181.0.46 18.181.0.57 old-faithful.mit.edu old-faithful scripts3.mit.edu scripts3 18.181.0.53 better-mousetrap.mit.edu better-mousetrap scripts4.mit.edu scripts4
    322         DocumentRoot /afs/athena.mit.edu/contrib/scripts/web_scripts/home
    323         Alias /heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
    324         SuExecUserGroup scripts users
    325         UserDir web_scripts
     309        Include conf.d/scripts-vhost.conf
    326310        Include conf.d/vhosts-common-ssl.conf
    327311    </VirtualHost>
Note: See TracChangeset for help on using the changeset viewer.