gooseproject / main

GoOSe Linux Project
http://gooseproject.org
14 stars 8 forks source link

Need join and get urls as redirects #1755

Closed herlo closed 12 years ago

herlo commented 12 years ago

In preparation for my presentations at UTOSC and SELF, I'd like to have a couple pages for folks to visit during/after the presentations. Additionally, it'll be useful to have them long term.

For now, let's just have the following:

http://get.gooseproject.org --- redirect --> http://koji.gooselinux.org/releases/ http://join.gooseproject.org --- redirect ---> https://github.com/gooseproject/main#readme

goozbach commented 12 years ago

Done and done.

Three steps (adding DNS to point to the same host as admin.gooseproject.com)

; join
join IN A 96.126.123.116
join IN AAAA 2600:3c00::f03c:91ff:fedf:ead7
; get
get IN A 96.126.123.116
get IN AAAA 2600:3c00::f03c:91ff:fedf:ead7

Adding this for the vhost

# get.gooseproject.org
<VirtualHost 96.126.123.116:80>
    ServerAdmin webmaster@friocorte.com
    DocumentRoot /srv/www/html/get.gooseproject.org/
    ServerName get.gooseproject.org
    ServerAlias join.gooseproject.org
    ErrorLog logs/get.error.log
    CustomLog logs/get.common.log common
    <Directory /srv/www/html/get.gooseproject.org/>
        Options +Indexes followsymlinks
        Order allow,deny
        allow from all
    </Directory>
    <Location "/">
        Options +Indexes
    </Location>
    include names.d/96.126.123.116.d/get.gooseproject.org.d/*.conf
</VirtualHost>

Add this to the per-host config:

RewriteEngine On

RewriteCond %{HTTP_HOST} get.gooseproject.org
RewriteRule ^/.* http://koji.gooselinux.org/releases/ [L,R=302]

RewriteCond %{HTTP_HOST} join.gooseproject.org
RewriteRule ^/.*  https://github.com/gooseproject/main#readme [NE,L,R=302]

That's it