Questions tagged [httpd.conf]

httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file. It is also the configuration file for OpenBSD httpd.

httpd.conf is a typical name for a web server configuration file.

Historically, this is the main Apache configuration file, but has been adopted by other servers, including OpenBSD httpd.

In recent Apache installations, the main file can also be called apache2.conf.

616 questions
0
votes
1 answer

Apache tag, do NOT redirect if client's IP = x... how to do that?

so I couldn't find an answer to this question anywhere... I am redirecting my clients from http to https when they're using http by having this in my httpd.conf ServerName futurelegendonline.net Redirect permanent /…
0
votes
2 answers

One site handles https request with no ssl correctly, other generates \x16\x03\x01 error

We have two sites, sub.example1.com and example2.com. Neither one is specifically configured to handle ssl requests. One site https:/sub.example1.com, handles a secure request to port 443 successfully by treating is as an http request. A secure…
Jack BeNimble
  • 194
  • 11
0
votes
1 answer

Apache Main Server does not serve as default as stated in httpd.conf when virtual hosts are created- Why?

When setting up an Apache server the Main Server section states the following: # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a #…
0
votes
1 answer

Apache not letting me into a folder

I've configured my httpd.conf using: Directory "/Users/GMan/Public/Source/LC2"> I've stopped the apache server with: apachectl stop And then restarted it with: apachectl -f /path/to/my/httpd.conf And yet when I browse to my ip: http://1.1.1.1 I…
GeoffreyF67
  • 497
  • 2
  • 7
  • 14
0
votes
1 answer

Moving cgi script from Apache 2.2 to 2.4 results in a 403 error

My configuration is as follows: #Include for LinuxStat (http://lstat.sf.net) Alias /lstat/ "/usr/local/lstat/www/" #for execute CGI files Options ExecCGI AddHandler cgi-script .cgi AllowOverride AuthConfig…
Marek Zakrzewski
  • 163
  • 1
  • 2
  • 11
0
votes
1 answer

Cannot get application to use htaccess unless pointing to index.php

I am having difficulty getting one of my applications to use the htaccess file inside its path unless i point directly to index.php in the browser I have installed on my computer ubuntu: Distributor ID: Ubuntu Description: Ubuntu 15.10 Release: …
slicks1
  • 11
  • 2
0
votes
3 answers

rewriterules +httpd.conf +.htaccess problem (urgent-site down)

I'm migrating one of my websites from dreamhost shared to dreamhost ps. the files copied OK and DNS resolved to the new server. However trying to get a pagw brings error 403 access forbidden. If I remove the .htaccess file from the directory of the…
Niro
  • 1,401
  • 4
  • 20
  • 36
0
votes
1 answer

How to read specific character out of request header in apache http.config

We are trying to read specific character out of http request header to determine the type of URL it needs to be forwarded it. E.g., Http header - HTTP_ACCEPT=version.ver1+xml In Httpd.config, we need requested version value (as in above case its -…
Sujit
  • 1
  • 2
0
votes
2 answers

Apache localhost works great, except PHP is not responding

I'm running Apache on Mac, PHP is installed, and I suspect something in the httpd.conf is not correctly set. The symptom: Running PHP files in localhost yields PHP code, nothing else. Running apachectl -D DUMP_HOSTS yields: Permission denied:…
konzepz
  • 209
  • 1
  • 2
  • 7
0
votes
2 answers

I need help setting up httpd.conf file to perform redirects to same site if accessed via http and https

I am pretty much a newb at http configuration, so please bear with me (I inherited support of this system). My web server is running behind an F5 which handles all of the https handshaking. If the incoming request is for http, the F5 passes the…
0
votes
1 answer

How to test conditions in apache configuration?

I want to test a configuration in apache. How can I "debug" the configuration file ? For example, let's say that I have : GeoIPEnable On GeoIPDBFile PATH_TO_LIB\GeoIP.dat GeoIPEnableUTF8 On GeoIPOutput…
Ismail H
  • 107
  • 7
0
votes
1 answer

How to Retain Proxy URL for all request using Apache load balancer

I am trying to serve the requests to my Site through Proxy machine using Load balancer. When i try to access the Site by hitting http://PROXYSERVER.com, the HomePage comes up fine retaining the address bar URL with http://PROXYSERVER.com. Now, when…
Geo j
  • 11
  • 2
  • 6
0
votes
1 answer

Apache 2.2.14: SSLCARevocation location

I am installing a .crl in my apache config. It looks like this: VirtualHost default DocumentRoot "web" ServerName example.com SSLEngine on SSLCertificateFile "cert.crt" SSLCertificateKeyFile "key.key" SSLCertificateChainFile…
Doc
0
votes
1 answer

CentOS 6.5 Apache redirect to 127.0.0.1

I have to install a new CentOS Server v6.5 I already install httpd and want to access Apache Welcome Page by serverIP. But I get a timeout, so I stop iptables service for a moment. Now I get an 301 redirect to 127.0.0.1 Some information : nano…
GTL-WEB
  • 1
  • 1
0
votes
1 answer

Apache: force client side certificate authentication for internet visitor, no authentication for localhost

How I can let Apache force client side certificate authentication upon guests from the internet, but require no authentication for the localhost? Both should use https, and read the same dir, preferably on the same port. I have a client side…
Doc