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

Mutiple Sites on localhost root (xampp) /w absolute paths

I have several projects on Linux-Servers which I work on locally with my Windows xampp enviroment. However, the apache directory (Virtual Host) settings are like this on all projects: DocumentRoot /var/www/html/project1/web
PrimuS
  • 2,505
  • 6
  • 33
  • 66
0
votes
1 answer

Cloud Foundry PHP website instance crashes with custom mime configuration

I am trying to deploy a basic php page with html extension at Cloud Foundry, more precisely at Swisscom Application Cloud. This is my only source file, located at ${APP_ROOT}/www/index.html My configuration…
atineoSE
  • 3,597
  • 4
  • 27
  • 31
0
votes
1 answer

Updated Windows 10, now Bitnami Wamp Apache will not start

Updated Windows 10 today and now the apache server will not start in Bitnami WAMP. This is the Windows error I'm getting httpd.exe: Could not open configuration file C:/Program Files/Bitnami/wampstack-7.1.1-0/apache2/conf/httpd.confN: The system…
Carrie K
  • 1
  • 2
0
votes
1 answer

Dynamic server aliasing in apache webserver

I have a usecase where I need to setup wildcard subdomains with condition so that for http://xyz.example.com type of request it should choose document root as /var/www/html/web and for http://xyz-portal.example.com it should choose document root as…
prasoon
  • 901
  • 8
  • 25
0
votes
1 answer

How to direct port 8081 to subfolder

I have two wordpress sites in different root folders on the same apache server. I need to use of different ports for each so that when I enter :8081 in a browser it will forward me to "/var/www/html/fwtest1.com" and pickup…
B.Ed
  • 1
  • 1
0
votes
1 answer

php links not working in sub folder of multi site

Testing two identical folders , one placed in a Drupal install folder and the other in a plain html subfolder in home root , only the php links for the one in CMS install work. This makes sense because Drupal has a settings php file and .htaccess…
cea
  • 285
  • 3
  • 11
0
votes
1 answer

ModSecurity: Execution phases can only be specified by chain starter rules

In modsecurity default-script: base_rules/modsecurity_crs_20_protocol_violations.conf there is a rule, 960011: SecRule REQUEST_METHOD "^(?:GET|HEAD)$" \ "msg:'GET or HEAD Request with Body Content.',\ severity:'2',\ id:'960011',\ …
Rop
  • 3,359
  • 3
  • 38
  • 59
0
votes
1 answer

Change RootDirectory for apache2 httpd in CentOS

OK. I know this topic sounds like it's been asked a thousand times and has been answered a million times. And it has been asked so many times and there are so many answers. However, I haven't been able to diagnose why is my configuration not…
Arpan Adhikari
  • 127
  • 1
  • 9
0
votes
0 answers

PHPIniDir not supported in Apache 2.4?

4 with PHP as an so module in my mac os El Capitan. I wanted to change the location of the php.ini file inside the httpd.conf file, and I used the PHPIniDir directive, but when i looked at phpinfo.php, i noticed the location was still /etc folder. I…
malena
  • 798
  • 11
  • 26
0
votes
1 answer

I cannot get Vhost to host multiple wordpress websites on centos 6.8

Issue: I cannot make the webserver host multiple websites. Solutions I have tried: I made two different Vhost.conf for the different websites(named differently according the website name but with the .conf extension. I then targeted different…
0
votes
1 answer

Redirect URL based on condition Apache Httpd.conf

I am using Apache web server "httpd-2.4.25-win64-VC14" which is integrated with JBoss. The Port redirect is working properly. Now i want to replace URL based on some condition let's say if URL contains 'Mobile' then i want to replace it with…
Anand Kadhi
  • 1,790
  • 4
  • 27
  • 40
0
votes
1 answer

URL Masking Using httpd

I need to write a rule for url masking in httpd even if the target url keep on changing. example My request url should always be static like: http://request.com/ and target should first go to the http://target.com/login.html and also after the login…
Nitesh Kumar
  • 875
  • 4
  • 20
  • 39
0
votes
1 answer

DNS subdomain syntax

I have a subdomain bonify.archaeolabs.nl it points to my servers ipaddress (DNS) and shows the www.archaeolabs.nl page. I have another root directory for bonify.archaeolabs.nl, I have a bonify.archaeolabs.nl.conf file with the…
Spatial Digger
  • 1,883
  • 1
  • 19
  • 37
0
votes
1 answer

Issue loading resources using mod_jk with httpd and tomcat

I have a tomcat application. I am also using apache server and connected it to tomcat using mod_jk. Here I used rewrite module to change my url and but when my website is running, page resources (css, js) are not loading correctly. My tomcat…
Mislam
  • 91
  • 1
  • 2
  • 12
0
votes
2 answers

KeepAliveTimeout 0 in apache webserver

I am running apache webserver in centos 7. Configured KeepAliveTimeout 0 in httpd.conf file. I thought based on this configuration, every tcp connection is alive until we force close. but count is gradually decreased when application is idle. then…