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

Multiple virtual hosts on localhost for development

I'm using Xampp (Apace 2.2.20) on mac os lion for development. I have a number of CMS projects and i want to access them by going to cms1.localhost, cms2.localhost, cms3.localhost etc Currently, with the setup I have below, all requests to the…
rix
  • 35
  • 1
  • 1
  • 4
0
votes
1 answer

Can I change Apache configuration based on requestHeaders?

I need to configure filter settings (In Apache2) based on RequestContent header. Is it possible? Specifically changes based on the value of one header. (I'm using mod_line_edit to filter html in reverse proxy) EDIT: I'm doing reverse proxy and I…
Hurda
  • 101
  • 1
  • 4
0
votes
1 answer

WAMP Server not working when I add a directory directive

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the code: LoadModule wsgi_module…
0
votes
3 answers

Redirect port / port 10000 to https apache

I have been reading around and trying different configurations to get a request to my server on port 10000 to redirect a http to a https request. For some reason I can't figure out how to make it happen when i use port 10000 although i can set a…
Hamid
  • 137
  • 1
  • 8
0
votes
2 answers

Setting http://domain and http://ip to show different directories

Can someone tell me what httpd.conf settings I need to acomplish this? When in browser I access http://IP I want to show: /var/www/html/ And when I access http://domain I want to show /var/www/html/_domains/domain But I don't know how the (or…
adrianTNT
  • 1,077
  • 6
  • 22
  • 43
0
votes
1 answer

Protect by password the / and /index.php but not the other scripts

In the document root of my web server (Apache 2.2.15 on CentOS 6.0) I have an /index.php script, which I'd like to be password protected and then few helper scripts (/helper1.php, /helper2.php, ...) which actually shouldn't be password-protected -…
Alexander Farber
  • 714
  • 4
  • 17
  • 38
0
votes
3 answers

Inline includes for httpd.conf?

Let's say I have a file list_of_naughty_ip_blocks.conf. Can I use the include directive to achieve the equivalent of line 8 below in my httpd.conf? If so, what is the proper syntax? Anything to note about the formatting & syntax of…
0
votes
1 answer

Setting up Virtual Host in Fedora Core 15 using apache

I'm trying to setup a couple of Virtual Host files on my Localhost PC running Fedora Core 15. Now I get this working, but now onloy one Virtual Host site works, and if I type in 127.0.0.1/test/testApp.php which is not related to the Virtual Host…
Elitmiar
  • 775
  • 3
  • 15
  • 31
0
votes
1 answer

How to limit bandwidth in CentOS using htaccess and not httpd.conf?

I'm trying to limit bandwidth in centOS. I have tried using bw_module, cband_module and bandwidth_module, but all of those required to use the httpd.conf and must restart httpd! I have to do this live. I want to allow smooth updates when the site is…
user76583
  • 31
  • 3
0
votes
1 answer

dynamically scan dir and include any .conf file found and add them to httpd.conf

i want to make a somewhat dynamic subdomain thing for my members. I looked into PHP, which didn't really meet all my requirements. alos htaccess wasn't right for me either. the only problem is that i need "real" subdomain but because each subomain…
Eli
  • 427
  • 2
  • 7
  • 18
0
votes
3 answers

Apache HTTP Server+Tomcat: Which file generates mod_jk.conf, how to modify generated stuff, and how does httpd reach it?

I'm using XAMPP with Apache HTTP Server and Tomcat Add-On installed. There's a default mod_jk.conf which is generated by Tomcat when starting it. But which file generates this mod_jk.conf file? How can I modify default values? By default, it looks…
Sk8erPeter
  • 199
  • 1
  • 2
  • 15
0
votes
1 answer

Apache server processes second request more slowly than first

I have an Apache server that has one Virtual Host with multiple Server Aliases, and I experience slow access times depending on what name I use to access the website. My httpd.conf file: ServerName 192.168.1.11:80
murgatroid99
  • 157
  • 1
  • 1
  • 7
0
votes
2 answers

What is the problem with this apache config

So im getting the error 'Forbidden You don't have permission to access / on this server.' when I go to ec2.guildwars2community.com using this config NameVirtualHost *:80 ServerName ec2.guildwars2community.com DocumentRoot…
Jase Whatson
  • 297
  • 3
  • 10
0
votes
1 answer

Linux Suse 11 and apache - httpd.conf

I have one problem and I hope you could help me. I disable http and now using only HTTPS- SSL. In httpd.conf I use: ProxyPass /comp1/ htt_://192.168.1.5/ ProxyPass /comp2/ htt_://192.168.1.6/ Everything works fine, but.. How can I disable default…
user88317
  • 1
  • 3
0
votes
1 answer

Apache alias to Ruby on Rails application

I have a RoR application that runs in /var/rails/redmine, and would like it to appear as a subdirectory in my Apache server (primarily so I can use a SSL certificate and not muck around with subdomains). My httpd.conf currently has a
ssube
  • 164
  • 1
  • 1
  • 10