Those who use CentOS 7 , try disabling selinux and save yourself 🙂
Also It can be caused by a number of things, such as:
File Permissions
Fatal Code Errors
Web Server Issues
Those who use CentOS 7 , try disabling selinux and save yourself 🙂
Also It can be caused by a number of things, such as:
File Permissions
Fatal Code Errors
Web Server Issues
Looks like port 80 is not opened . Run the following command and try again.
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent $ sudo firewall-cmd --reload
Another reason could be web server is down.
HTTP is a session less protocol. A connection is made to transfer a single file and closed once the transfer is complete. This keeps things simple but it’s not very efficient.
To improve efficiency something called KeepAlive was introduced. With KeepAlive the web browser and the web server agree to reuse the same connection to transfer multiple files.
Apache directives are a set of rules which define how your server should run, number of clients that can access your server, etc. you can change them by editing the httpd.conf and related files to meet your requirements
Below given are the some of the important directives
This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule, to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, of server variables, environment variables, HTTP headers, or time stamps. Even external database lookups in various formats can be used to achieve highly granular URL matching.
This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput.
Below given are the some of the important Apache modules
This module allows user-specific directories to be accessed using the http://example.com/~user/ syntax.
The UserDir directive sets the real directory in a user’s home directory to use when a request for a document for a user is received.
If the end user terminates the connection when the server response was being formed or was being transferred, we see “connection reset by peer” in the error log.
Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name.
This directive enables or disables the spelling module. When enabled, keep in mind that
mod_speling should not be enabled in DAV enabled directories, because it will try to “spell fix” newly created resource names against existing filenames, e.g., when trying to upload a new document doc43.html it might redirect to an existing document doc34.html, which is not what was intended.