8 votes

How to Change the www root directory on WampServer

Click on Green Wamp Icon (Taskbar right Notification Icons) > Apache > httpd.conf > Replace all ${INSTALL_DIR}/www with your directory. Take care to use / instead of \ Click on Green Wamp Icon > ...
optimiertes's user avatar
3 votes
Accepted

Site works ok on HTTP, not on HTTPS

The problem that you have is because you have not abled AllowOverride All within the SSL virtual host which allows the use of .htaccess which I suspect contains the URL rewrite rules and conditions. ...
Simon Hayter's user avatar
  • 32.9k
3 votes
Accepted

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

This is an issue I've ran into a few times & it stems from a change in terminology from Apache 2.2 to Apache 2.4 (detailed here). Access control options that were previously addressed with 'Order ...
Matthew Haeck's user avatar
2 votes

Disabling If-modified-since / if-none-match on web server for some files

Let me make your question a little simpler.. :) What ? Send 200 response instead of 304 How ? Just add this configuration in your Apache setup. <filesMatch "\.(xml)$"> FileETag None <...
skbly7's user avatar
  • 131
2 votes

Apache httpd.conf && .htaccess directives written in PCRE?

it looks quite similar to PCRE syntax Yes, many of the parameters to Apache directives do take regular expressions (regex) and the "flavour" of regex used is indeed PCRE. This applies to mod_rewrite ...
MrWhite's user avatar
  • 42.7k
2 votes
Accepted

setting rewrite rules in httpd.config file at host server

Just to clarify usage... you can only have one ServerName directive. If you have more than one then the later directive simply overrides the earlier one. However, you can have many ServerAlias ...
MrWhite's user avatar
  • 42.7k
2 votes

HOWTO log only slow requests in apache httpd

The CustomLog directive allows you to set a condition (in an optional 3rd argument) that is used to control when the request is logged. (On Apache 2.4+ this can take the form of an Apache Expression.) ...
MrWhite's user avatar
  • 42.7k
2 votes
Accepted

Why does RewriteRule for "^//(.*)" (begins with double slash) not redirect to a single slash?

RewriteRule "^//(.*)" "/$1" [R=301,L] This will never match because the URL-path that the RewriteRule pattern matches against has already had all instances of multiple slashes ...
MrWhite's user avatar
  • 42.7k
2 votes

AH00558: httpd: Could not reliably determine server's fully qualified servername error after creating VirtualHost

The problem is with the line ServerName localhost.localdomain in adorkable.conf. The entire server is running on localhost.localdomain. You should use your actual domain name in your VirtualHost ...
Stephen Ostermiller's user avatar
1 vote
Accepted

update virtual host's SSL cert after cpanel has expired

If someone has a better answer, please post it. But here's how I was able to achieve it: Goto /var/cpanel/ssl/apache_tls/ You will see a directory for each of your virtual host. Inside each directory,...
Dushyant Bangal's user avatar
1 vote

How to open port 8080 on windows 10, configure firewall and any other settings?

Turns out for some reason my cable modem blocks 8080. I am assuming it must be reserved for another service higher in the list. I had to figure this out on my own as comcast still says it is not ...
Chris W. 's user avatar
1 vote

Put WAMP online but hide its server index page

the server's index file which shows the list of all the projects is also accessible. What I want is to be only able to view it from local machine, not from others. Others can only access the index ...
MrWhite's user avatar
  • 42.7k
1 vote
Accepted

Why does switching php versions from 56 to 71 in httpd.conf give me a 403 access denied error? (MacOS localhost)

Php7.1 requires the following addition to httpd.conf SetHandler application/x-httpd-php When reverting back to php5.6, that line must be commented out, or again, the php code will not be interpreted....
pcgben's user avatar
  • 131
1 vote
Accepted

How can I modify httpd.conf to add one more site in Apache 2.4.6?

My problem is I have already one site in '/var/www/html' with domain1.com. If I add one more site domain2.com create a new folde like /var/www/new or /var/www/html/new, how to modify <VirtualHost *:...
MrWhite's user avatar
  • 42.7k
1 vote

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

Can html go in the ErrorDocument value internally in httpd.conf? Yes. HTML is just text and Apache appears to send this with a Content-Type: text/html header by default anyway. So, when this "text" ...
MrWhite's user avatar
  • 42.7k
1 vote

How to Change the www root directory on WampServer

I tried doing this, but found that it got overwritten upon wamp restart. You can fix it for good by editing the $wwwDir variable in wamp/scripts/config.inc.php
Chuon Phearak's user avatar
1 vote

RewriteBase has to change when using UserDir

The RewriteBase directive controls the path prefix (the base URL) that is added back when you have a relative path substitution in the RewriteRule. The following (index.php) is a relative path ...
MrWhite's user avatar
  • 42.7k
1 vote

How to hide awstats url parameters

Try something like the following in the document root's .htaccess file: RewriteEngine On RewriteRule ^stats/$ /awstats/awstats.pl?config=awstatsconffile.org [L] This will internally rewrite requests ...
MrWhite's user avatar
  • 42.7k

Only top scored, non community-wiki answers of a minimum length are eligible