mod-headers Questions

6

Solved

I'm running Apache 2.2.26: Server version: Apache/2.2.26 (Unix) Server built: Jan 17 2014 12:24:49 Cpanel::Easy::Apache v3.22.30 rev9999 +cloudlinux I'm attempting to use mod_headers to edit Set...
Glaze asked 9/6, 2014 at 21:16

3

Solved

I have a rewrite rule which redirects to / if no Accept-Language header is present and someone attempts to visit ?lang=en. It works fine, except for the headers returned. Vary: Accept-Language is m...
Chemosmosis asked 13/9, 2010 at 7:2

2

I enable mod_headers and mod_rewrite in my http.config removing the # from line. LoadModule headers_module modules/mod_headers.so LoadModule rewrite_module modules/mod_rewrite.so I need enable...
Foret asked 29/8, 2011 at 3:11

4

Question Description: I want to set my site "Access-Control-Allow-Origin", so I set it in apache's config (almost anywhere), but it's not working. I also set other headers for testing, but it's sti...
Come asked 13/10, 2013 at 3:44

5

Solved

My web application runs on a different number of hosts that I control. To prevent the need to change the Apache config of each vhost, I add most of the config using .htaccess files in my repo...
Mooring asked 10/6, 2014 at 15:10

2

I need to send a CORS header from my map server (QGIS mapserver) that use a fast cgi with Apache 2.4.* on the port 8080. I configured the with a simple <VirtualHost *:8080> [...] Header s...
Flux asked 15/7, 2016 at 15:42

2

So I am trying to have siteA do a jquery .load of some content on siteB. In doing this, im getting the Access-Control-Allow-Origin Error. So on siteB, I placed a .htaccess file that should allow si...
Bedstraw asked 6/8, 2013 at 16:37

3

Solved

When acting as a reverse proxy, apache adds x-forwarded headers as described here. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers In my configuration I have configured server A as ...
Intimacy asked 5/9, 2011 at 19:53

2

Solved

I'm working with an apache server, and I'd like to add headers conditionally. If the URI matches a certain regex, I'd like to add the header Access-Control-Allow-Origin: *. What is a good way to d...
Dromedary asked 21/1, 2014 at 23:3

2

Solved

I would like .htaccess to perform the following code ONLY if http_referer is from google (.com/ .ru/ .co.uk /.co.in/ etc.). Is this possible? <filesMatch ".(jpg|jpeg|png|gif)$"> Fil...
Wonted asked 18/4, 2013 at 4:53

2

I am using apache as a load balancer and reverse proxy. For session stickiness I am creating a cookie with the route of the node. Header set Set-Cookie "h=.%{BALANCER_WORKER_ROUTE}e; path=/; domai...
Weakly asked 9/4, 2015 at 22:11

4

Solved

I want to check whether mod_headers and mod_expires modules enabled or not in my server Is there a way available to list apache enabled/disabled modules using some php function just like we list p...
Iniquity asked 9/1, 2012 at 20:13

1

Solved

This .htaccess file: <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 4 month" </IfModule> <IfModule mod_headers.c> Header merge X-ModHeaders "Yes, it is ...
Brahmanism asked 21/8, 2015 at 18:47

1

I need to be able to test the URL string in a Location response header for a certain pattern and if it matches replace it with another. e.g. if response is Location: http://wrongserver.com I need ...
Couturier asked 6/8, 2014 at 10:49

2

Solved

I'm trying to set two cookies in Apache (2.2), using mod_header, like so: Header set Set-Cookie "poodle=noodle;path=/;Secure;HttpOnly;Expires=Wed, Jan 01 2020 2:02:02 GMT" Header set Set-Cookie "t...
Cockerham asked 17/5, 2013 at 0:34

1

Solved

This page says this: If a response includes both an Expires header and a max-age directive, the max-age directive overrides the Expires header, even if the Expires header is more restrictive ...
Propagate asked 28/8, 2012 at 17:45

1

Solved

I want to cache images and other files on my site, so what I did is made sure mod_headers and mod_expires with :- /usr/sbin/httpd -l then edited .htaccess to be:- ExpiresActive On ExpiresDefaul...
Toastmaster asked 29/3, 2012 at 20:28

3

Solved

For the purposes of CDN invalidation I need to add a prefix to the path element of a site's URL. This is changed whenever a new version of the asset is released. The URL is then rewritten using m...
Etienne asked 30/10, 2011 at 21:21

1

Solved

I've finally gotten a VPS hosting account set up this allows me to use mod_deflate and mod_header (of course). I'm attempting to make my site faster by YSlow's guidelines which include gzipping (vi...
Hid asked 24/11, 2011 at 20:24

1

Solved

I want to conditionally set cache headers depending on what path files are accessed from. Basically, accessing http://www.example.com/cache/$cache_key/* should serve files with far in the future ca...
Gall asked 18/10, 2011 at 19:12
1

© 2022 - 2024 — McMap. All rights reserved.