Questions tagged [httpd.conf]

Configuration file used by HTTP Server called Apache.

Configuration file used by HTTP Server called Apache.

80 questions
23
votes
9 answers

How to Change the www root directory on WampServer

How can i change the root directory of the currently installed wampserver to some other directory.
Prasanth K C
  • 385
  • 1
  • 2
  • 10
7
votes
1 answer

403 error on index file

When I try to access index.py in my server root through http://domain/, I get a 403 Forbidden error, but when I can access it through http://domain/index.py. In my server logs it says "Options ExecCGI is off in this directory: /var/www/index.py".…
John L.
  • 71
  • 1
6
votes
1 answer

HTTP Header Cache Time: s-maxage and max-age

I am setting up a CDN for my website, I found the following sample for adding to the 'httpd.conf' file, this is used to adjust the cache-time for client and CDN: ExpiresActive On ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpeg…
RRN
  • 221
  • 1
  • 2
  • 7
6
votes
4 answers

How do I hide the port in my URL?

What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the port so much as not require the user to type it in…
Dallas
  • 394
  • 2
  • 4
  • 15
5
votes
1 answer

RewriteBase has to change when using UserDir

I have setup our Apache server to use UserDir. This mean our URLs are: http://dev.server.com/~username/drupal/html/ Before our URLS were: http://dev.server.com/drupal/html/ In the 2nd case I never had to set RewriteBase. The default just…
5
votes
3 answers

Redirect to HTTPS is missing a slash after the domain name

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example: http://example.com/index.html redirects me to http://www.example.comindex.html. The / (tail ending slash) is missing and I can't figure out how to fix it. It…
Clem
  • 51
  • 1
  • 1
  • 2
4
votes
1 answer

Set the "servername" directive globally to suppress this message

I am setting up PHP for the first time and I am getting this error from the Apache server: Set the "servername" directive globally to suppress this message. This is the content of my httpd.conf file: # This is the main Apache HTTP server…
LOTUSMS
  • 324
  • 2
  • 3
  • 13
4
votes
1 answer

How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?

In /etc/apache2/sites-available/example.com: ServerName www.example.com DocumentRoot /var/www/example.com/htdocs SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem …
Charlie Schliesser
  • 475
  • 1
  • 5
  • 16
4
votes
2 answers

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS since WordPress is linking to the absolute domain…
Anagio
  • 11,205
  • 1
  • 27
  • 49
4
votes
2 answers

Apache http.conf allow intranet

what would be the correct config to allow only authenticated users and the intranet (without need for a password) in apache? This does not request a password and without the "satisfy any" intranet users are also required to enter a…
Magreet
4
votes
1 answer

Configure Apache HTTP 2.2 for PUT method

I've written code for file upload and download using HttpWebRequest/HttpWebResponse class in C# with Apache 2.2 as a web server. In code I'm using request.method = "PUT". I want to config my HTTP config file to support PUT method. I write PUT method…
soundar
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

HOWTO log only slow requests in apache httpd

Is there a way to specify a condition in apache httpd access_log to persist only requests which took longer than 500ms to process?
Anthony
  • 149
  • 4
4
votes
1 answer

What does "Require all granted" on Directory / (root) REALY means? (Apache 2.4 on CentOS7

im sure, this question looks really stupid first. but i need a "second opinion" on this, even i did some research on my own but i am still unsure about this. By default the Apache Configuration on CentOS7 and pretty much any Distro i know so far…
Axel Werner
  • 143
  • 1
  • 1
  • 5
3
votes
1 answer

Can html go in the ErrorDocument value internally in httpd.conf?

According to apache documentation, the final parameter of ErrorDocument can be specified as a path, URL or text to any error code. What I have done so far to eliminate any calls to the I/O file system is to use text as my final value. For example, I…
Mike -- No longer here
  • 13,650
  • 5
  • 29
  • 63
3
votes
1 answer

Require valid ServerName in httpd.conf

I have two virtual hosts, and have sites1.com and sites2.com pointing to my server. All works fine. ServerName site1.com DocumentRoot /var/www/site1/html allow from all …
user1032531
  • 243
  • 1
  • 10
1
2 3 4 5 6