The httpd.conf tag has no wiki summary.
1
vote
1answer
49 views
mod_rewrite in .htaccess causes header not to be applied - why?
Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files):
<LocationMatch "\.js">
Header set Cache-Control "max-age=290304000, public"
...
0
votes
2answers
25 views
Apache 2.2.15: Allow from CN require auth from Internet
How do I configure httpd.conf for directory /something
to grant access to everybody from 10.0.0.0/8 withOUT password
AND to require everybody else coming from whereever to basic authenticate
The ...
0
votes
1answer
51 views
Apache + CentOS 6 + Joomla: You don't have permission to access / on this server
My site was in /usr/local/apache/htdocs.
Now i created new account in cpanel and move site to /home/account_name/public_html
Group and owner for all files are "account_name"
.htaccess and path ...
0
votes
2answers
37 views
Apache httpd.conf Only use SSL for subdomain and give 404 for other https URLs
I have a current configuration for my website mail client:
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
...
0
votes
2answers
44 views
Apache without any error page
How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error ...
1
vote
1answer
23 views
How to setup Apache so some websites across multiple sub-domains are always using https
I realise there are lots of different variations on this question on serverfault but I haven't had any luck with combining answers to match our situation.
We have a CentOS 6.2 web server running ...
0
votes
1answer
20 views
one of my virtual directory wont work
I have couple of virtual directories in my MAMP and everything works fine but for some reason one of the virtual server doesn't work.
In my folder (testserver) I have these files
index.html ...
-2
votes
0answers
24 views
Besides index what else to config for http? [closed]
Possible Duplicate:
Tips for Securing a LAMP Server
I am configuring a new web server on centos 6.2 So I have diasbled indexing like this. What else must I config for security purposes?
...
0
votes
1answer
71 views
webserver with 7GB RAM, 8 core processor are the below settings OK? [closed]
My website has 7GB RAM and an 8 core processor. I have set the http.conf configuration as mentioned below
<IfModule prefork.c>
StartServers 100
MinSpareServers 100
...
0
votes
2answers
23 views
Configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses
I'd like to know how to configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses. I assume there is a directive to add to httpd.conf, but not ...
0
votes
1answer
27 views
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 ...
4
votes
1answer
163 views
how to rewrite '%25' in url
My website software replaces space characters with '+' characters in the URL, A proper link would look like 'http://www.schirmacher.de/display/INFO/How+to+reattach+a+disk+to+XenServer' for example.
...
4
votes
2answers
94 views
httpd.conf variables : What is the difference between ${var} and %{var}?
What is the difference between ${var} and %{var} in httpd.conf?
How and when would one use ${} and %{}?
http://httpd.apache.org/docs/2.4/configuring.html mentions :
The values of variables ...
1
vote
2answers
75 views
500 internal server error php long running process
I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings.
PHP Config:
...
0
votes
1answer
127 views
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 ...
0
votes
1answer
131 views
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 ...
1
vote
1answer
26 views
apache httpd error: “mod_rewrite: can't access DBM RewriteMap file”
I'm running a fresh httpd install on Fedora linux and all my static content 403s.
The error_log shows this:
mod_rewrite: can't access DBM RewriteMap file
How do I fix this?
Thanks,
Chris
0
votes
1answer
49 views
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 ...
0
votes
1answer
323 views
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 ...
0
votes
1answer
31 views
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 ...
1
vote
2answers
156 views
How to Proxypass on Apache?
I googled and i couldnt come across anything that is directive on configuring apache for proxypass.
I did managed to find Transition domain to new web host without waiting for DNS propagation but i ...
0
votes
1answer
33 views
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).
...
-3
votes
1answer
148 views
Why does the httpd process consume so much memory?
I am using Linux with Koloxo panel for site management. My database server went down, and I think it happened because of a lack of memory. This is even though the machine has 8GB memory and there ...
2
votes
1answer
97 views
Apache deflate ignores javascript
I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with ...
1
vote
1answer
55 views
Httpd.conf does not work on apache
I've installed Ubuntu Server and Apache2.
I want to test my httpd.conf by adding following code:
<Directory />
Order allow,deny
Deny from all
</Directory>
...
0
votes
1answer
80 views
Accessing directories outside of DocumentRoot
I've recently deployed a web application to my Linux Redhat server using Capistrano which creates the following directory structure in the site's document root:
/var/www/html/example.com/releases/*
...
0
votes
2answers
133 views
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, ...
0
votes
0answers
92 views
Apache configuration mpm
Good morning. I have a problem with my server. Am I study the different "response times" of an apache server. The main thing I do is change the MaxClient.
For this use:
Laptop windows 7 core i3. ...
1
vote
1answer
70 views
How to redirect all subdomains do one domain in Apache config file without specifying domain name?
I want to make general rule for all my domains, so I don't have to specify each of them individually.
I have these two lines in my Apache config file:
RewriteCond %{HTTP_HOST} ^domain\.com
...
0
votes
1answer
230 views
I can't run apache, all against me, it says “The requested operation has failed”, see log?
Installing the Apache2 service
The Apache2 service is successfully installed.
Starting the Apache2 service
The Apache2 service is running.
ce] Apache/2.0.64 (Win32) configured -- resuming normal ...
1
vote
1answer
38 views
Simple query about the apache Include directive
I understand the principle of including external files into the httpd.conf using the Include directive, but I just want to double-check that I've understood how it works.
On our server, we already ...
2
votes
0answers
50 views
htppd.conf or other local issue loading any php file in one specific localhost directory [closed]
Firefox:
"You have chosen to open (no file name here?) which is a: application/x-httpd-php (12.6 KB) from http://localhost"
"What should Firefox do with this file? Open with () Save File [ BROWSE ]"
...
0
votes
2answers
463 views
Restarting the httpd service in RHEL returns “Stopping httpd: [FAILED]” - How do I fix this?
This is my first indication of an issue:
$ sudo /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: no listening sockets available, ...
0
votes
4answers
43 views
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 ...
1
vote
1answer
95 views
Configure Apache server-status handler
This is on Apache/2.2.21. In httpd.conf, I had the following directive:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from ...
0
votes
2answers
160 views
How can I configure Apache to use more of my CPU?
Apache threads are stacking up on one of my web servers (300-500 simultaneous requests, some taking 3-8s to process!), but CPU usage is very low (~10%). Page load time is slowing way down as a ...
2
votes
1answer
108 views
Why is the RewriteBase not working?
Here is what I am trying to do:
domain is thinkingmonkey.me
domain has 127.0.0.1 as IP addr
mod_alias is installed.
I have a conf file called directories.conf. In which I have all the ...
0
votes
2answers
63 views
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.
...
0
votes
2answers
57 views
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 ...
0
votes
1answer
40 views
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 ...
0
votes
2answers
55 views
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:
...
0
votes
1answer
106 views
Rewriting subdomain.domain.com when other 'subdomains' exist
My httpd.conf looks like this:
NameVirtualHost 12.34.56.78:80
<VirtualHost 12.34.56.78:80>
DocumentRoot /var/www/html/site
ServerName www.example.com
<IfModule mod_rewrite.c>
...
1
vote
2answers
153 views
Subversion Checkout Yields Could Not Open the Requested Subversion System
I've installed subversion on our RHEL server and also installed dav_svn_module. My location tag in httpd.conf is as follows:
<Location /subversion>
DAV svn
SVNPath /subversion
AuthType Basic
...
2
votes
2answers
44 views
Get Apache2.2 to hide Microsoft documents that are being edited?
I have a htdocs directory where I am serving a few Microsoft Word documents. When someone is editing a document, the name of the document changes to look like something like this: ...
0
votes
1answer
178 views
If directive not working in apache VirtualHost conf, says “Invalid command”
Why??
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
DirectoryIndex index.php
<If "%{SERVER_PROTOCOL} != 'HTTPS'">
Redirect / ...
0
votes
1answer
25 views
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.
<Directory ...
0
votes
1answer
77 views
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 ...
0
votes
1answer
27 views
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 ...
0
votes
1answer
260 views
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 ...
0
votes
1answer
102 views
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 ...