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 Alias - removes POST data?

I have an alias in my httpd.conf where I'm redirecting a single PHP file to another PHP file located in a different dir. Though it appears as thought data POST'd to this file doesn't get carried along? Is that the case? If so is there a way to carry…
waxical
  • 344
  • 2
  • 5
  • 12
0
votes
1 answer

Apache on Lion Server with two IP addresses

I'm trying to run Apache and nginx on the same machine, on different IP addresses. It's a Mac Mini with one ethernet card. I configured two eth network devices. I tried to change the apache configuration in /etc/apache2 to listen only on one IP, and…
Patrick
  • 361
  • 1
  • 3
  • 11
0
votes
3 answers

virtual host setup: can't access wordpress site without www

I would like to access my site both with and without using the www. Currently it only works with. Leaving out the www just goes to a blank page. Also, wp-admin just loads a blank page too. I have set an A record for mysite.com and www.mysite.com,…
0
votes
1 answer

VirtualHost doesnt seem to be working

Good morning. I recently migrated my web server to new hardware and to the newest version of Apache. I was running Apache 2 before as well just to be clear. I seem to be having problems getting my virtualhost to work properly. On the old server, I…
Brian
  • 341
  • 1
  • 2
  • 13
0
votes
3 answers

Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages saying the "connection was reset" in Firefox. See…
zuallauz
  • 143
  • 1
  • 10
0
votes
1 answer

Default vhost-config domain behaviour for apache httpd server

It seems that the if I go to my apache httpd-server with only the ip-address it will always default to the first vhost-config domain which is alphabetically first configured in the sites-enabled folder. Now I have the case that some strange domain…
DanEEStar
  • 103
  • 2
0
votes
1 answer

apache2.conf how to set a param for a module in based on url parameter

I need to set a param for a module (specifically is activation of geoencoding module by setting a param GeoIPEnable On) in httpd.conf based on a parameter in the request url (for example geo=true). How can this be done?
Niro
  • 1,401
  • 4
  • 20
  • 36
0
votes
2 answers

Apache Log Rotation

Is there any mod or program for Apache Httpd which rotate logs as well as purge them without the restarting of server processes? I have checked a few options, mod_autorotate, rotatelogs, mod_log_rotate and cronologs. Scratched out mod_autorotate…
0
votes
4 answers

mod_rewrite redirects to www.example.com// when trying to access example.com

I have a VPS on which I'm trying to setup multiple websites. For one of them, with the current set of rules (below), accessing hxxp://example.com sends me to hxxp://www.example.com// [note the two //] My httpd.conf looks like: NameVirtualHost…
siliconpi
  • 1,807
  • 6
  • 32
  • 46
0
votes
2 answers

mod_rewrite `Redirect` how?

I have 2 urls say thinkingmonkey.me and thinkingmonkey.com both have ip-address 127.0.0.1 (A.K.A localhost). I want to redirect any requests to thinkingmonkey.com to thinkingmonkey.me. ServerAdmin…
ThinkingMonkey
  • 476
  • 1
  • 9
  • 18
0
votes
2 answers

Finding Document Root

I can browse the company intranet site using the following URL. http://192.168.1.2/admin/index.php How do I find the full path of the file "index.php"? I tried... locate admin/index.php and it gave me a lot of results from different directories.…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

What should I set ServerName to in httpd.conf if using only virtual hosts?

I have a linux server with 2 dedicated IPs that I use to host about 10 different sites with Apache's virtual host capabilities. Each site has its own domain name, and I use NameVirtualHosts to direct requests to the proper folder based on which…
Luke Mlsna
  • 133
  • 4
0
votes
2 answers

Unable to get mod_rewrite to stop processing

This is linked to Rewriting subdomain.domain.com when other 'subdomains' exist I need mod_rewrite to 'stop' processing, but it seems to continue on. On my registrar, I've set A records as: * 12.34.56.78 @ 12.34.56.78 mgr 12.34.56.79 [it was…
siliconpi
  • 1,807
  • 6
  • 32
  • 46
0
votes
1 answer

Rewriting subdomain.domain.com when other 'subdomains' exist

My httpd.conf looks like this: NameVirtualHost 12.34.56.78:80 DocumentRoot /var/www/html/site ServerName www.example.com RewriteEngine On ...
siliconpi
  • 1,807
  • 6
  • 32
  • 46
0
votes
1 answer

Directory directive for directory outside doc root - best practice

I have a virtual host which has access to a directory outside of its document root. In the config for this host I specify the directory directive to allow access to this directory. Options -Indexes AllowOverride…
rix
  • 35
  • 1
  • 1
  • 4