Skip to main content
3 votes
Accepted

HTTP website redirect all except 1 file to https

If it were me; I would set up to give the http its own directory and redirect anything that would be a 404 to the https using the .htaccess of http location. This keeps things easy to understand for ...
Wayne Smith's user avatar
  • 2,701
3 votes

Website not working when adding .htaccess

I haven't checked the syntax on the rules, but my first reaction is that the comments look wrong. Try replacing the two forward slashes with a hash mark and make sure the # is the first character on ...
Greig's user avatar
  • 141
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
3 votes

Error when pruning WHM backups sent offsite via FTP

The FTP server is a Windows Server 2012 machine. It was configured to use ms-dos style directory listings for FTP. ms-dos FTP listing are not compatible with the external backup transport in WHM. ...
Chris Vesper's user avatar
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
2 votes

CPanel Rearrange account can't find home2

I've contacted CPanel's support. The problem was you need to setup 2 variables in En WHM -> Server Configuration -> Basic WebHost Manager® Setup, HOMEMATCH and HOMEDIR I was changing just the ...
Alex Angelico's user avatar
2 votes

Configure Apache to redirect all requests to index.html?

I do mine with a .htaccess file. In the DocumentRoot for the site, I create the .htaccess file and it in goes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
ivanivan's user avatar
  • 121
2 votes
Accepted

Build PHP for DirectAdmin using custombuild from alternative sources

Because I couldn't find any alternative sources so I decided to try the approach 2: Can I just download PHP from https://www.php.net/downloads.php, put it in custombuild directory then run ./build ...
Penguin's user avatar
  • 51
1 vote

Pagespeed Virtual Host Configuration

CSS, JS, images: These are all static files, and as you say you are using Plesk, these are normally processed by Nginx and not by Apache. So such requests will never be addressed by the rules that you ...
Thomas's user avatar
  • 79
1 vote

Moving https website from server A (CentOS 7) to server B (CentOS 8) - what do I need to do regarding certificates?

It sounds to me very much like you have not enabled and configured NGINX to listen on port 443 (and I'm guessing you have not told it where to find the certs either). https://nginx.org/en/docs/http/...
davidgo's user avatar
  • 8,315
1 vote

How to create socket dynamically on lighttpd server?

See the documentation for "min-procs" "min-procs" => 0 is an option. https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#Options
gstrauss's user avatar
  • 151
1 vote

Lighttpd - configure multiple PHP versions

You can configure lighttpd to run multiple fastcgi servers and to send traffic to one or the other based on conditions. fastcgi.server += ( ".php" => (( "host" => "127.0....
gstrauss's user avatar
  • 151
1 vote
Accepted

Performance: 10.000 files in one folder vs. 10.000 files in several folders

To add to Rob's point, directories/folders are for user convenience. Although, the term folder is used by Windows, it was also used by the Mac OS in the early 90's, when Windows 3.x was still using ...
Trebor's user avatar
  • 3,300
1 vote

VirtualHost add sub domain?

There's lot's more on Apache configuration over at StackOverflow. Like you I've done very little in the config files, so apologies if this is not much use. Not entirely sure this answers your ...
GLCoder's user avatar
  • 346
1 vote

VirtualHosts Not Working - Apache - CentOS 6

First issue is that you've set both of your VirtualHost configs to use DocumentRoot /home/website/public_html -- one should be /home/webapp/public_html. Next issue sounds like DNS, you mention adding ...
Linux Pro's user avatar
  • 121
1 vote

.htaccess rewrite rules working on Mac Apache 2.2 but not on CentOS Apache 2.4

So I eventually worked this out by going line to line changing redirects to https://google.com to see which worked and which didn't. Any patterns in the .htaccess that had a matching php file wouldn'...
Rory's user avatar
  • 111
1 vote
Accepted

HTTPS request connection timeout (NGINX)

Issue resolved after installing firewall-cmd and adding a rule for port 443.
Hassan's user avatar
  • 131

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