reverse proxy - Apache set new header not working -


i'm trying put new header called myheader request proxied backend in apache reverse proxy 2.4 using following configuration. header not getting inserted. can apache expert please

    <location /dashboard>       authtype form       sethandler form-logn-handle       authname dashboard       authformprovider dbd       authformloginrequiredlocation http://example.com/login.html       authformlogoutlocation http://example.com/logout.html       authdbduserpwquery "select cust_password table user=%s"       require valid-user       rewriteengine on       session on       sessionmaxage 6000       sessioncookiename session path=/       sessionheader x-replace-session        rewritecond %{request_filename} -f       rewritecond %{request_filename} -d       rewritecond %{la-u:remote_user} ^[a-z].*        rewriterule ^/(.*)\.(gif|jpg|png|jpeg|css|js|map|ttf|woff|woff2)$ http://localhost/dashboard/%{la-u:remote_user}/$1 [ns,nc,qsa,p,l]        rewritecond %{la-u:remote_user} ^[a-z].*       rewriterule ^/(.+)/dashboard/(.*)$ http://localhost/dashboard/%{la-u:remote_user}/$1 [ns,nc,qsa,p,l]       proxypass http://localhost/dashboard       requestheader set myheader "myheader"       header set myheader "myheader"       proxypassreverse http://localhost:80/dashboard       proxypreservehost on     </location> 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -