Questions tagged [mod-include]

9 questions
8
votes
3 answers

Apache regex backreferences UNREACHABLE in httpd 2.4?

I Love the new apache httpd 2.4 with lots of new cool stuff ! ap_expr is one of these new very promising features, ..BUT the following SSI snippet don't work as expected: {{if expr="v('HTTP_SESSION') =~ /-user=([^&]+)/"}} {{set var="user"…
kjetildm
  • 274
  • 3
  • 11
2
votes
0 answers

Can I return an error code when an Apache SSI fails?

So I have a web application that uses Apache includes. Something like this: Now when /some/application/component fails, Apache still returns the rest of the page with missing output. I can set…
Kramer
  • 927
  • 2
  • 13
  • 30
2
votes
0 answers

SSI/mod_include: new ap_expr syntax not working as documented

My website uses SSI (server-side includes) to check a condition (using #if expr) and return different HTML code based on whether the condition is true or false. This used to work fine for years until recently, my website started showing the error…
outofthecave
  • 477
  • 6
  • 15
2
votes
1 answer

Include file (header) using htaccess

I want to include a certain file with every page-call. For simplicity, assume I have a header which should be pre-pended to every file. (Eg. a php script which checks all sorts of user agent stuff.) I could use mod_rewrite to send all requests to…
SamGoody
  • 13,758
  • 9
  • 81
  • 91
2
votes
1 answer

Garbled text when including remote .shtml file using mod_include and mod_proxy

I'm experimenting with apache mod_include. I got two servers running apache: I'm trying to include in my test_local.shtml (server1) some simple text from test_remote.shml (server2). test_local.shtml:
Lorenzo Marcon
  • 8,029
  • 5
  • 38
  • 63
1
vote
2 answers

Using Apache Server-side Flow Control in PHP?

As discussed a bit in this question, I am using Apache mod_include with conditional flow control statements to alter the behavior of included shtml files depending on the URL of the parent page. The problem I'm having is that some of the pages on…
Jeffrey Blake
  • 9,659
  • 6
  • 43
  • 65
0
votes
1 answer

htaccess mod_deflate and mod_include with JS files

i using mod_deflate to compress my (html|css|js|xml|php|txt) Files. (working without any problems) I also combine my CSS / JS Scripts with the mod_include module to save requests... Both working well...but they are uncompressed. With my combined CSS…
Tom
  • 151
  • 10
0
votes
1 answer

Make apache mod_proxy ProxyErrorOverride include original page contents with mod_include

I'm using apache mod_proxy to forward certain requests to an IIS server and also use ProxyErrorOverride to provide a corporate style on the error pages. However I would like to include the original servers error message in custom error pages to…
Cris
  • 31
  • 6
0
votes
1 answer

Apache httpd mod_include - handle include of 400+ responses with blank

I want to you Apache 2.2 httpd to SSI include URLs using My problem is if, the SSI included page doesnt exist on my App server, it responds with a 404 response and a default error page HTML, which is…
empire29
  • 3,729
  • 6
  • 45
  • 71