Questions tagged [httpd.conf]

The main configuration file of Apache HTTP Server is usually called httpd.conf

The main configuration file of Apache HTTP Server is usually called httpd.conf. The location of this file is set at compile-time but may be overridden with the -f command line flag.

2031 questions
0
votes
1 answer

X-Frame-Options: .htaccess vs httpd.conf

In httpd.conf (Unix / Mac OS Sierra) I've got "Header set X-Frame-Options SAMEORIGIN" I'd like to override that for a specific directory to X-Frame-Options ALLOW-FROM SpecificDomain.com Goal is to allow iframe acess to that directory but no…
WhatsYourFunction
  • 621
  • 1
  • 9
  • 25
0
votes
2 answers

Linux remove lines contain certain ip addresses from log file (66.249)

i have a 6gb httpd log file and i want to remove lines beginging in 66.249 (ip block of googlebot) i did have a SetEnvIf Remote_Addr "66\.249\.\." dontlog entry in my httpd.conf file but it didnt seem to work so is there a linux command like…
0
votes
1 answer

How to add AllowEncodedSlashes On to httpd.conf Ubuntu

how to add AllowEncodedSlashes On in httpd.conf? im using Apache/2.4.18 ... i cant find httpd.conf in /etc/apache2 im read this article saying that httpd.conf no more https://help.ubuntu.com/lts/serverguide/httpd.html then, how i can add that…
Jazuly
  • 321
  • 1
  • 4
  • 15
0
votes
1 answer

Laravel 5.2 redirect()->route() not working ONLY on production

Im facing this problem for the last 2 weeks (!!) Only on production env suddenly any redirect()->route() stopped working! no matter what i do...it just wont work. my prod web is on https protocol, 3 weeks ago it was still working , then suddenly…
0
votes
1 answer

Apache re-write rule for new connections only

I've been following the following guide to control whether or not to display a maintenance page. https://www.shellhacks.com/redirect-site-maintenance-page-apache-htaccess/ I would only like Apache to re-direct new connections to the maintenance page…
Anton Rand
  • 322
  • 5
  • 20
0
votes
2 answers

Apache virtual hosting url redirect from one domain to other domain without showing the url in the browser

Apache virtual hosting url redirect from one domain to other domain without showing the url in the browser?
vivek sharma
  • 17
  • 1
  • 9
0
votes
1 answer

Apache httpd not able to access local MongoDB (permission denied)

I am using to apache httpd to serve my python application. The application is running perfectly in standalone mode using the binary executable command inginious-webapp. MongoDB also works fine. But the problem arises when serving it though Apache…
Harvey
  • 184
  • 1
  • 3
  • 15
0
votes
0 answers

Apache httpd 2.2 - How to transform value of a variable to remove part of the string

I have a variable coming in to Apache called "MELLON_NAME_ID" as part of mod_auth_mellon for SSO. It populates the variable with "DOMAIN\Username", and I need to populate the REMOTE_USER variable with just the "Username" portion of that. Is this…
Adam vonNieda
  • 1,635
  • 2
  • 14
  • 22
0
votes
1 answer

httpd direct based on HTTP header

I have some existing config to redirect traffic to a different service depending on the URL path, and if no path matches defaults to a "main" load balanced service BalancerMember http://main-service01:8080 …
Jon
  • 31
  • 6
0
votes
0 answers

Pretty Url - Yii2 is not working

Using yii2 to develop web service. The results always return 404 not found if pretty url is enable. I suspect the htaccess or httpd.conf is not working. Expected route: http://localhost:63342/myproject/admin/api/totalviews If the pretty url is…
JohnnyCc
  • 525
  • 1
  • 8
  • 23
0
votes
1 answer

How to find out the location of the httpd.conf configuration file controlling the behavior of the python 2.7 httpserver module.?

I am running python -m httpserver on Macintosh OS X. Here's the Python 2.7 code implementing the httpserver: import CGIHTTPServer import BaseHTTPServer class Handler(CGIHTTPServer.CGIHTTPRequestHandler): cgi_directories = ["/cgi"] PORT =…
0
votes
1 answer

.htaccess SEF URL is not working if /component used in the URL for Joomla

When site is using the alias for Seo-friendly URL then it is working fine. http://SITEURL/member-login but when site is using the URL like "/component/girls" then it is not working and giving the error "Bad karma: we can't find that page!".…
Urdesh Kumar
  • 1,120
  • 1
  • 17
  • 23
0
votes
0 answers

Adding custom headers in apache based on post request parameters

I have an API (POST) hosted on apache server, which I want to proxy it to another server. I have done it by using ProxyPass feature. Following is the excerpt: ServerName mydomain ServerAlias *.mydomain ProxyPass /myAPI/…
jeangrey
  • 33
  • 5
0
votes
1 answer

405 error without Access-Control-Allow-Origin in response from Google reCAPTCHA

I am trying to implement reCaptcha by google, but the validation is failing when i call the api mentioned below. In reCaptcha/admin i have mentioned localhost in the Domains list. google.com/recaptcha/api/siteverify Below is the error that i have…
nilesh
  • 315
  • 2
  • 11
  • 24
0
votes
1 answer

Instruct apache not to decode URL

So I have a URL like http://example.com/params/color_rgb(0%2C0%2C250%2C0.5) But apache is forwarding it like (http://example.com/params/color_rgb(0,0,250,0.5)) after decoding which I don't want. How can I restrict apache from doing this. I have…