Skip to content

Instantly share code, notes, and snippets.

@lukego
Last active January 3, 2016 18:39
Show Gist options
  • Save lukego/8503881 to your computer and use it in GitHub Desktop.
Save lukego/8503881 to your computer and use it in GitHub Desktop.
Setting up a roughdraft.io blog with my own URLs

roughdraft.io for blogging

I like the look of roughdraft.io for automatically rendering my Github Gists as a blog at http://lukego.roughdraft.io/.

I'd prefer to use my own name in the URLs though, so that links aren't permanently dependent on roughdraft.io. (There's a lot of churn in my blog infrastructure life, it seems.) I tried a little Apache config to make http://blog.lukego.com/6634948 display the content of http://lukego.roughdraft.io/6634948:

ProxyPassMatch ^(/[0-9]*)$ http://lukego.roughdraft.io$1

but for some reason the browser is redirecting to the roughdraft URL instead of letting apache transparently proxy. I wonder why.

$ telnet blog.lukego.com 80
Trying 46.4.118.98...
Connected to blog.lukego.com.
Escape character is '^]'.
GET /6634948 HTTP/1.0
Host: blog.lukego.com

HTTP/1.1 302 Found
Date: Sun, 19 Jan 2014 11:56:30 GMT
Server: nginx
Content-Type: text/html;charset=utf-8
Content-Length: 0
Status: 302 Found
Location: http://lukego.roughdraft.io/6634948

Thinking cap on...

@Nuxij
Copy link

Nuxij commented Feb 17, 2014

Possibly you need a ProxyPassReverse too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment