Cannot seem to get X-REQUEST_URI to show up in my headers

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot seem to get X-REQUEST_URI to show up in my headers

Mason Miller
Apache 2.2.26 / lasso 8.6

# Honor the server-wide rewrite rules if any exist.
    RewriteOptions inherit
 
# Debug rewrite rules for use in development only.
# RewriteLogLevel can be 1-9.
# Configure the path to the rewrite log file.
# Do NOT enable in production or your log file will get huge quickly.

 
# Lasso gets all virtual files and directories
# that don't have an extension between 1 and 8 characters long
   RewriteCond %{REQUEST_URI} !^.*\.[^.]{1,8}$
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d [OR]
    RewriteCond %{REQUEST_URI} ^/$
    RewriteRule (.*) /_urlhandler.lasso [L,NS,PT,E=X-REQUEST-URI:$1]
    RequestHeader unset X-REQUEST-URI
    RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e env=X-REQUEST-URI


In Lasso the following show in client headers:

Host: tiberius.masonmiller.com
Cache-Control: max-age=0
Cookie: _SessionTracker_jobWelder=32F2C4ED0c48c23183gqu263D735; _ga=GA1.2.1927511570.1462301248; _gat=1
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17
Accept-Language: en-us
Accept-Encoding: gzip, deflate
DNT: 1

Any ideas? It is calling /_urlhandler.lasso

Thanks,

Mason



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot seem to get X-REQUEST_URI to show up in my headers

Bil Corry-3
I looked back at my old rewrite code in 2008 and I didn't have hyphens in
the environmental name, maybe that's it?  This is a snippet from mine,
which is very similar to yours:

    RewriteRule  (.*)  -  [E=XREQUEST:$1]
    RequestHeader set X-Request %{XREQUEST}e env=XREQUEST


- Bil


On Thu, May 5, 2016 at 6:43 PM, Mason Miller <[hidden email]> wrote:

> Apache 2.2.26 / lasso 8.6
>
> # Honor the server-wide rewrite rules if any exist.
>     RewriteOptions inherit
>
> # Debug rewrite rules for use in development only.
> # RewriteLogLevel can be 1-9.
> # Configure the path to the rewrite log file.
> # Do NOT enable in production or your log file will get huge quickly.
>
>
> # Lasso gets all virtual files and directories
> # that don't have an extension between 1 and 8 characters long
>    RewriteCond %{REQUEST_URI} !^.*\.[^.]{1,8}$
>     RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
>     RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d [OR]
>     RewriteCond %{REQUEST_URI} ^/$
>     RewriteRule (.*) /_urlhandler.lasso [L,NS,PT,E=X-REQUEST-URI:$1]
>     RequestHeader unset X-REQUEST-URI
>     RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e env=X-REQUEST-URI
>
>
> In Lasso the following show in client headers:
>
> Host: tiberius.masonmiller.com
> Cache-Control: max-age=0
> Cookie: _SessionTracker_jobWelder=32F2C4ED0c48c23183gqu263D735;
> _ga=GA1.2.1927511570.1462301248; _gat=1
> Connection: keep-alive
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4)
> AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> DNT: 1
>
> Any ideas? It is calling /_urlhandler.lasso
>
> Thanks,
>
> Mason
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot seem to get X-REQUEST_URI to show up in my headers

stevepiercy
In reply to this post by Mason Miller
Did you read my related article?  I went through this myself
when I wrote it.
http://www.stevepiercy.com/articles/virtual-urls-with-apache-and-lasso-saving-the-environment-variables/

Otherwise a better description of the problem is needed,
including what you expected, what you tried, and what you observed.

--steve


On 5/5/16 at 12:43 PM, [hidden email] (Mason Miller) pronounced:

>Apache 2.2.26 / lasso 8.6
>
># Honor the server-wide rewrite rules if any exist.
>RewriteOptions inherit
>
># Debug rewrite rules for use in development only.
># RewriteLogLevel can be 1-9.
># Configure the path to the rewrite log file.
># Do NOT enable in production or your log file will get huge quickly.
>
>
># Lasso gets all virtual files and directories
># that don't have an extension between 1 and 8 characters long
>RewriteCond %{REQUEST_URI} !^.*\.[^.]{1,8}$
>RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
>RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d [OR]
>RewriteCond %{REQUEST_URI} ^/$
>RewriteRule (.*) /_urlhandler.lasso [L,NS,PT,E=X-REQUEST-URI:$1]
>RequestHeader unset X-REQUEST-URI
>RequestHeader set X-REQUEST-URI %{X-REQUEST-URI}e env=X-REQUEST-URI
>
>
>In Lasso the following show in client headers:
>
>Host: tiberius.masonmiller.com
>Cache-Control: max-age=0
>Cookie: _SessionTracker_jobWelder=32F2C4ED0c48c23183gqu263D735;
>_ga=GA1.2.1927511570.1462301248; _gat=1
>Connection: keep-alive
>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4)
>AppleWebKit/601.5.17 (KHTML, like Gecko) Version/9.1 Safari/601.5.17
>Accept-Language: en-us
>Accept-Encoding: gzip, deflate
>DNT: 1
>
>Any ideas? It is calling /_urlhandler.lasso
>
>Thanks,
>
>Mason
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>