Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need join and get urls as redirects #1755

Closed
herlo opened this issue Apr 20, 2012 · 1 comment
Closed

Need join and get urls as redirects #1755

herlo opened this issue Apr 20, 2012 · 1 comment
Assignees

Comments

@herlo
Copy link
Member

herlo commented Apr 20, 2012

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

@ghost ghost assigned goozbach Apr 20, 2012
@goozbach
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants