Arc Forumnew | comments | leaders | submitlogin
3 points by aw 4846 days ago | link | parent

I still have to figure out how to redirect www. to the non-www address

The http://awwx.ws/srv-misc1 patch makes the HTTP request headers available in the request object. This includes the "Host" header, which contains the domain name the user is connecting to; i.e. "www.example.com" or "example.com" etc.

I kind of feel like I am telling a group of marathoners about how I ran a mileā€¦

I felt the same way when I started with Arc ^_^



1 point by markkat 4845 days ago | link

Thanks aw. I'm trying to make that patch happen right now. I'm hanging up on getting scheme0 reqs though. Added extend0 and scheme0 and the two defarc0 patches, but not quite sure where I am going wrong. Probably something silly. Trying to figure it out. :)

-----

3 points by aw 4845 days ago | link

Check out the "script" command (type "man script" to get the documentation). It will make a transcript of your terminal session, everything you type and everything that gets printed. You can then copy that transcript into a comment here or email it.

-----

1 point by markkat 4845 days ago | link

Ugh, that sounds like one of those 'going to work naked' nightmares. :/ BTW, thanks for the advice on the patches. -Aw is aware, but for posterity, I was loading 'scheme0.arc' after svr.arc in libs. Thanks for pointing that out aw.

-----