Findings (MAC III - Administrative Sensitive)
Following are some Apache web server hardening tips that you can incorporate to improve security. Hiding Server Version Banner. One of the first things to be taken care of is hiding the server version banner. The default apache configuration will expose the server version. This information might help an attacker gain a greater understanding of.
2021-02-10 — Apache Subversion Security Advisory ¶ The recent releases of Apache Subversion 1.14.1 and 1.10.7 contain a fix for a security issue: CVE-2020-17525. This issue affect Subversion 'moddavsvn' servers only. We encourage server operators to upgrade to the latest appropriate version as soon as reasonable. Red Hat JBoss Core Services (JBCS) 5 Apache HTTP Server Latest is based on upstream v2.4.37 Prior releases were based on upstream v2.4.29 v2.4.23 and v2.4.6 Starting from RHEL 8, JBCS will not provide a full Apache HTTPD web server anymore, just some modules.
Finding ID | Severity | Title | Description |
---|---|---|---|
V-214248 | High | Apache web server application directories, libraries, and configuration files must only be accessible to privileged users. | By separating Apache web server security functions from non-privileged users, roles can be developed that can then be used to administer the Apache web server. Forcing users to change from a .. |
V-214242 | High | The Apache web server must provide install options to exclude the installation of documentation, sample code, example applications, and tutorials. | Apache web server documentation, sample code, example applications, and tutorials may be an exploitable threat to an Apache web server because this type of code has not been evaluated and .. |
V-214253 | High | The Apache web server must generate a session ID using as much of the character set as possible to reduce the risk of brute force. | Generating a session identifier (ID) that is not easily guessed through brute force is essential to deter several types of session attacks. By knowing the session ID, an attacker can hijack a user .. |
V-214273 | High | The Apache web server software must be a vendor-supported version. | Many vulnerabilities are associated with older versions of web server software. As hot fixes and patches are issued, these solutions are included in the next version of the server software. .. |
V-214271 | High | The account used to run the Apache web server must not have a valid login shell and password defined. | During installation of the Apache web server software, accounts are created for the Apache web server to operate properly. The accounts installed can have either no password installed or a default .. |
V-214245 | Medium | The Apache web server must have Web Distributed Authoring (WebDAV) disabled. | A web server can be installed with functionality that, by its nature, is not secure. WebDAV is an extension to the HTTP protocol that, when developed, was meant to allow users to create, change, .. |
V-214264 | Medium | The Apache web server must be configured to integrate with an organizations security infrastructure. | A web server will typically use logging mechanisms for maintaining a historical log of activity that occurs within a hosted application. This information can then be used for diagnostic purposes, .. |
V-214243 | Medium | The Apache web server must have resource mappings set to disable the serving of certain file types. | Resource mapping is the process of tying a particular file type to a process in the web server that can serve that type of file to a requesting client and to identify which file types are not to .. |
V-214240 | Medium | The Apache web server must only contain services and functions necessary for operation. | A web server can provide many features, services, and processes. Some of these may be deemed unnecessary or too unsecure to run on a production DoD system.The web server must provide the .. |
V-214238 | Medium | Expansion modules must be fully reviewed, tested, and signed before they can exist on a production Apache web server. | In the case of a production web server, areas for content development and testing will not exist, as this type of content is only permissible on a development website. The process of developing on .. |
V-214268 | Medium | Cookies exchanged between the Apache web server and the client, such as session cookies, must have cookie properties set to prohibit client-side scripts from reading the cookie data. | A cookie can be read by client-side scripts easily if cookie properties are not set properly. By allowing cookies to be read by the client-side scripts, information such as session identifiers .. |
V-214269 | Medium | The Apache web server must remove all export ciphers to protect the confidentiality and integrity of transmitted information. | During the initial setup of a Transport Layer Security (TLS) connection to the Apache web server, the client sends a list of supported cipher suites in order of preference. The Apache web server .. |
V-214260 | Medium | The Apache web server must be configured to immediately disconnect or disable remote access to the hosted applications. | During an attack on the Apache web server or any of the hosted applications, the System Administrator (SA) may need to disconnect or disable access by users to stop the attack.The Apache web .. |
V-214249 | Medium | The Apache web server must separate the hosted applications from hosted Apache web server management functionality. | The separation of user functionality from web server management can be accomplished by moving management functions to a separate IP address or port. To further separate the management functions, .. |
V-214246 | Medium | The Apache web server must be configured to use a specified IP address and port. | The web server must be configured to listen on a specified IP address and port. Without specifying an IP address and port for the web server to use, the web server will listen on all IP addresses .. |
V-214247 | Medium | Apache web server accounts accessing the directory tree, the shell, or other operating system functions and utilities must only be administrative accounts. | As a rule, accounts on a web server are to be kept to a minimum. Only administrators, web managers, developers, auditors, and web authors require accounts on the machine hosting the web server. .. |
V-214244 | Medium | The Apache web server must allow the mappings to unused and vulnerable scripts to be removed. | Scripts allow server-side processing on behalf of the hosted application user or as processes needed in the implementation of hosted applications. Removing scripts not needed for application .. |
V-214263 | Medium | The Apache web server must not impede the ability to write specified log record content to an audit log server. | Writing events to a centralized management audit system offers many benefits to the enterprise over having dispersed logs. Centralized management of audit records and logs provides for efficiency .. |
V-214228 | Medium | The Apache web server must limit the number of allowed simultaneous session requests. | Apache web server management includes the ability to control the number of users and user sessions that utilize an Apache web server. Limiting the number of allowed users and sessions per user is .. |
V-214229 | Medium | The Apache web server must perform server-side session management. | Session management is the practice of protecting the bulk of the user authorization and identity information. This data can be stored on the client system or on the server.When the session .. |
V-214266 | Medium | The Apache web server must prohibit or restrict the use of nonsecure or unnecessary ports, protocols, modules, and/or services. | Web servers provide numerous processes, features, and functionalities that use TCP/IP ports. Some of these processes may be deemed unnecessary or too unsecure to run on a production system.The .. |
V-214241 | Medium | The Apache web server must not be a proxy server. | A web server should be primarily a web server or a proxy server but not both, for the same reasons that other multi-use servers are not recommended. Scanning for web servers that will also proxy .. |
V-214265 | Medium | The Apache web server must generate log records that can be mapped to Coordinated Universal Time (UTC) or Greenwich Mean Time (GMT) which are stamped at a minimum granularity of one second. | If time stamps are not consistently applied and there is no common time reference, it is difficult to perform forensic analysis across multiple devices and log records.Time stamps generated by .. |
V-214256 | Medium | Warning and error messages displayed to clients must be modified to minimize the identity of the Apache web server, patches, loaded modules, and directory paths. | Information needed by an attacker to begin looking for possible vulnerabilities in a web server includes any information about the web server, backend systems being accessed, and plug-ins or .. |
V-214237 | Medium | The log data and records from the Apache web server must be backed up onto a different system or media. | Protection of log data includes ensuring log data is not accidentally lost or deleted. Backing up log records to an unrelated system or onto separate media than the system the web server is .. |
V-214236 | Medium | The log information from the Apache web server must be protected from unauthorized modification or deletion. | Log data is essential in the investigation of events. If log data were to become compromised, competent forensic analysis and discovery of the true source of potentially malicious system activity .. |
V-214261 | Medium | Non-privileged accounts on the hosting system must only access Apache web server security-relevant information and functions through a distinct administrative account. | By separating Apache web server security functions from non-privileged users, roles can be developed that can then be used to administer the Apache web server. Forcing users to change from a .. |
V-214235 | Medium | The Apache web server log files must only be accessible by privileged users. | Log data is essential in the investigation of events. If log data were to become compromised, competent forensic analysis and discovery of the true source of potentially malicious system activity .. |
V-214234 | Medium | The Apache web server must use a logging mechanism that is configured to alert the Information System Security Officer (ISSO) and System Administrator (SA) in the event of a processing failure. | Reviewing log data allows an investigator to recreate the path of an attacker and to capture forensic data for later use. Log data is also essential to SAs in their daily administrative duties on .. |
V-214233 | Medium | An Apache web server, behind a load balancer or proxy server, must produce log records containing the client IP information as the source and destination and not the load balancer or proxy IP information with each event. | Apache web server logging capability is critical for accurate forensic analysis. Without sufficient and accurate information, a correct replay of the events cannot be determined.Ascertaining the .. |
V-214231 | Medium | The Apache web server must have system logging enabled. | The server error logs are invaluable because they can also be used to identify potential problems and enable proactive remediation. Log data can reveal anomalous behavior such as “not found” or .. |
V-214232 | Medium | The Apache web server must generate, at a minimum, log records for system startup and shutdown, system access, and system authentication events. | Log records can be generated from various components within the Apache web server (e.g., httpd, plug-ins to external backends, etc.). From a web server perspective, certain specific Apache web .. |
V-214251 | Medium | Cookies exchanged between the Apache web server and client, such as session cookies, must have security settings that disallow cookie access outside the originating Apache web server and hosted application. | Cookies are used to exchange data between the web server and the client. Cookies, such as a session cookie, may contain session information and user credentials used to maintain a persistent .. |
V-214250 | Medium | The Apache web server must invalidate session identifiers upon hosted application user logout or other session termination. | Captured sessions can be reused in 'replay' attacks. This requirement limits the ability of adversaries from capturing and continuing to employ previously valid session IDs.Session IDs are .. |
V-214252 | Medium | The Apache web server must generate a session ID long enough that it cannot be guessed through brute force. | Generating a session identifier (ID) that is not easily guessed through brute force is essential to deter several types of session attacks. By knowing the session ID, an attacker can hijack a user .. |
V-214255 | Medium | The Apache web server must be tuned to handle the operational requirements of the hosted application. | A denial of service (DoS) can occur when the Apache web server is so overwhelmed that it can no longer respond to additional requests. A web server not properly tuned may become overwhelmed and .. |
V-214254 | Medium | The Apache web server must be built to fail to a known safe state if system initialization fails, shutdown fails, or aborts fail. | Determining a safe state for failure and weighing that against a potential denial of service for users depends on what type of application the web server is hosting. For an application presenting .. |
V-214257 | Medium | Debugging and trace information used to diagnose the Apache web server must be disabled. | Information needed by an attacker to begin looking for possible vulnerabilities in a web server includes any information about the web server and plug-ins or modules being used.When debugging or .. |
V-214230 | Medium | The Apache web server must use cryptography to protect the integrity of remote sessions. | Data exchanged between the user and the Apache web server can range from static display data to credentials used to log on to the hosted application. Even when data appears to be static, the .. |
V-214258 | Medium | The Apache web server must set an inactive timeout for sessions. | Leaving sessions open indefinitely is a major security risk. An attacker can easily use an already authenticated session to access the hosted application as the previously authenticated user. By .. |
V-214270 | Medium | The Apache web server must install security-relevant software updates within the configured time period directed by an authoritative source (e.g., IAVM, CTOs, DTMs, and STIGs). | Security flaws with software applications are discovered daily. Vendors are constantly updating and patching their products to address newly discovered security vulnerabilities. Organizations .. |
V-214239 | Medium | The Apache web server must not perform user management for hosted applications. | User management and authentication can be an essential part of any application hosted by the web server. Along with authenticating users, the user management function must perform several other .. |
V-214274 | Medium | The Apache web server htpasswd files (if present) must reflect proper ownership and permissions. | In addition to OS restrictions, access rights to files and directories can be set on a website using the web server software. That is, in addition to allowing or denying all access rights, a rule .. |
V-214259 | Medium | The Apache web server must restrict inbound connections from nonsecure zones. | Remote access to the Apache web server is any access that communicates through an external, non-organization-controlled network. Remote access can be used to access hosted applications or to .. |
V-214267 | Medium | The Apache web server must be protected from being stopped by a non-privileged user. | An attacker has at least two reasons to stop a web server. The first is to cause a denial of service (DoS), and the second is to put in place changes the attacker made to the web server .. |
V-214262 | Medium | The Apache web server must use a logging mechanism that is configured to allocate log record storage capacity large enough to accommodate the logging requirements of the Apache web server. | To make certain that the logging mechanism used by the web server has sufficient storage capacity in which to write the logs, the logging mechanism needs to be able to allocate log record storage .. |
V-214272 | Low | The Apache web server must be configured in accordance with the security configuration settings based on DoD security configuration or implementation guidance, including STIGs, NSA configuration guides, CTOs, and DTMs. | Configuring the Apache web server to implement organization-wide security implementation guides and security checklists guarantees compliance with federal standards and establishes a common .. |
Apache is the most commonly used Web server on Linux systems. Web servers are used to serve Web pages requested by client computers. Clients typically request and view Web pages using Web browser applications such as Firefox, Opera, Chromium, or Internet Explorer.
Users enter a Uniform Resource Locator (URL) to point to a Web server by means of its Fully Qualified Domain Name (FQDN) and a path to the required resource. For example, to view the home page of the Ubuntu Web site a user will enter only the FQDN:
To view the community sub-page, a user will enter the FQDN followed by a path:
The most common protocol used to transfer Web pages is the Hyper Text Transfer Protocol (HTTP). Protocols such as Hyper Text Transfer Protocol over Secure Sockets Layer (HTTPS), and File Transfer Protocol (FTP), a protocol for uploading and downloading files, are also supported.
Apache Web Servers are often used in combination with the MySQL database engine, the HyperText Preprocessor (PHP) scripting language, and other popular scripting languages such as Python and Perl. This configuration is termed LAMP (Linux, Apache, MySQL and Perl/Python/PHP) and forms a powerful and robust platform for the development and deployment of Web-based applications.
Installation
The Apache2 web server is available in Ubuntu Linux. To install Apache2:
At a terminal prompt enter the following command:
Configuration
Apache2 is configured by placing directives in plain text configuration files. These directives are separated between the following files and directories:
apache2.conf: the main Apache2 configuration file. Contains settings that are global to Apache2.
httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. In other distributions (or older versions of Ubuntu), the file might be present. In Ubuntu, all configuration options have been moved to apache2.conf and the below referenced directories, and this file no longer exists.
conf-available: this directory contains available configuration files. All files that were previously in
/etc/apache2/conf.d
should be moved to/etc/apache2/conf-available
.conf-enabled: holds symlinks to the files in
/etc/apache2/conf-available
. When a configuration file is symlinked, it will be enabled the next time apache2 is restarted.envvars: file where Apache2 environment variables are set.
mods-available: this directory contains configuration files to both load modules and configure them. Not all modules will have specific configuration files, however.
mods-enabled: holds symlinks to the files in
/etc/apache2/mods-available
. When a module configuration file is symlinked it will be enabled the next time apache2 is restarted.ports.conf: houses the directives that determine which TCP ports Apache2 is listening on.
sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations.
sites-enabled: like mods-enabled,
sites-enabled
contains symlinks to the/etc/apache2/sites-available
directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted.magic: instructions for determining MIME type based on the first few bytes of a file.
In addition, other configuration files may be added using the Include directive, and wildcards can be used to include many configuration files. Any directive may be placed in any of these configuration files. Changes to the main configuration files are only recognized by Apache2 when it is started or restarted.
The server also reads a file containing mime document types; the filename is set by the TypesConfig directive, typically via /etc/apache2/mods-available/mime.conf
, which might also include additions and overrides, and is /etc/mime.types
by default.
Basic Settings
This section explains Apache2 server essential configuration parameters. Refer to the Apache2 Documentation for more details.
Apache2 ships with a virtual-host-friendly default configuration. That is, it is configured with a single default virtual host (using the VirtualHost directive) which can be modified or used as-is if you have a single site, or used as a template for additional virtual hosts if you have multiple sites. If left alone, the default virtual host will serve as your default site, or the site users will see if the URL they enter does not match the ServerName directive of any of your custom sites. To modify the default virtual host, edit the file
/etc/apache2/sites-available/000-default.conf
.Note
The directives set for a virtual host only apply to that particular virtual host. If a directive is set server-wide and not defined within the virtual host settings, the default setting is used. For example, you can define a Webmaster email address and not define individual email addresses for each virtual host.
If you wish to configure a new virtual host or site, copy that file into the same directory with a name you choose. For example:
Edit the new file to configure the new site using some of the directives described below.
The ServerAdmin directive specifies the email address to be advertised for the server’s administrator. The default value is webmaster@localhost. This should be changed to an email address that is delivered to you (if you are the server’s administrator). If your website has a problem, Apache2 will display an error message containing this email address to report the problem to. Find this directive in your site’s configuration file in /etc/apache2/sites-available.
The Listen directive specifies the port, and optionally the IP address, Apache2 should listen on. If the IP address is not specified, Apache2 will listen on all IP addresses assigned to the machine it runs on. The default value for the Listen directive is 80. Change this to 127.0.0.1:80 to cause Apache2 to listen only on your loopback interface so that it will not be available to the Internet, to (for example) 81 to change the port that it listens on, or leave it as is for normal operation. This directive can be found and changed in its own file,
/etc/apache2/ports.conf
The ServerName directive is optional and specifies what FQDN your site should answer to. The default virtual host has no ServerName directive specified, so it will respond to all requests that do not match a ServerName directive in another virtual host. If you have just acquired the domain name
mynewsite.com
and wish to host it on your Ubuntu server, the value of the ServerName directive in your virtual host configuration file should bemynewsite.com
. Add this directive to the new virtual host file you created earlier (/etc/apache2/sites-available/mynewsite.conf
).You may also want your site to respond to
www.mynewsite.com
, since many users will assume the www prefix is appropriate. Use the ServerAlias directive for this. You may also use wildcards in the ServerAlias directive.For example, the following configuration will cause your site to respond to any domain request ending in .mynewsite.com.
The DocumentRoot directive specifies where Apache2 should look for the files that make up the site. The default value is /var/www/html, as specified in
/etc/apache2/sites-available/000-default.conf
. If desired, change this value in your site’s virtual host file, and remember to create that directory if necessary!
Enable the new VirtualHost using the a2ensite utility and restart Apache2: Sophos xg on azure.
Note
Be sure to replace mynewsite with a more descriptive name for the VirtualHost. One method is to name the file after the ServerName directive of the VirtualHost.
Similarly, use the a2dissite utility to disable sites. This is can be useful when troubleshooting configuration problems with multiple VirtualHosts:
Default Settings
This section explains configuration of the Apache2 server default settings. For example, if you add a virtual host, the settings you configure for the virtual host take precedence for that virtual host. For a directive not defined within the virtual host settings, the default value is used.
The DirectoryIndex is the default page served by the server when a user requests an index of a directory by specifying a forward slash (/) at the end of the directory name.
For example, when a user requests the page
http://www.example.com/this_directory/
, he or she will get either the DirectoryIndex page if it exists, a server-generated directory list if it does not and the Indexes option is specified, or a Permission Denied page if neither is true. The server will try to find one of the files listed in the DirectoryIndex directive and will return the first one it finds. If it does not find any of these files and if Options Indexes is set for that directory, the server will generate and return a list, in HTML format, of the subdirectories and files in the directory. The default value, found in/etc/apache2/mods-available/dir.conf
is “index.html index.cgi index.pl index.php index.xhtml index.htm”. Thus, if Apache2 finds a file in a requested directory matching any of these names, the first will be displayed.The ErrorDocument directive allows you to specify a file for Apache2 to use for specific error events. For example, if a user requests a resource that does not exist, a 404 error will occur. By default, Apache2 will simply return a HTTP 404 Return code. Read
/etc/apache2/conf-available/localized-error-pages.conf
for detailed instructions for using ErrorDocument, including locations of example files.By default, the server writes the transfer log to the file
/var/log/apache2/access.log
. You can change this on a per-site basis in your virtual host configuration files with the CustomLog directive, or omit it to accept the default, specified in/etc/apache2/conf-available/other-vhosts-access-log.conf
. You may also specify the file to which errors are logged, via the ErrorLog directive, whose default is/var/log/apache2/error.log
. These are kept separate from the transfer logs to aid in troubleshooting problems with your Apache2 server. You may also specify the LogLevel (the default value is “warn”) and the LogFormat (see/etc/apache2/apache2.conf
for the default value).Some options are specified on a per-directory basis rather than per-server. Options is one of these directives. A Directory stanza is enclosed in XML-like tags, like so:
The Options directive within a Directory stanza accepts one or more of the following values (among others), separated by spaces:
ExecCGI - Allow execution of CGI scripts. CGI scripts are not executed if this option is not chosen.
Caution
Most files should not be executed as CGI scripts. This would be very dangerous. CGI scripts should kept in a directory separate from and outside your DocumentRoot, and only this directory should have the ExecCGI option set. This is the default, and the default location for CGI scripts is
/usr/lib/cgi-bin
.Includes - Allow server-side includes. Server-side includes allow an HTML file to include other files. See Apache SSI documentation (Ubuntu community) for more information.
IncludesNOEXEC - Allow server-side includes, but disable the #exec and #include commands in CGI scripts.
Indexes - Display a formatted list of the directory’s contents, if no DirectoryIndex (such as index.html) exists in the requested directory.
Caution
For security reasons, this should usually not be set, and certainly should not be set on your DocumentRoot directory. Enable this option carefully on a per-directory basis only if you are certain you want users to see the entire contents of the directory.
Multiview - Support content-negotiated multiviews; this option is disabled by default for security reasons. See the Apache2 documentation on this option.
SymLinksIfOwnerMatch - Only follow symbolic links if the target file or directory has the same owner as the link.
Apache 2.4.6 End Of Life
apache2 Settings
This section explains some basic apache2 daemon configuration settings.
LockFile - The LockFile directive sets the path to the lockfile used when the server is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or USE_FLOCK_SERIALIZED_ACCEPT. It must be stored on the local disk. It should be left to the default value unless the logs directory is located on an NFS share. If this is the case, the default value should be changed to a location on the local disk and to a directory that is readable only by root.
PidFile - The PidFile directive sets the file in which the server records its process ID (pid). This file should only be readable by root. In most cases, it should be left to the default value.
User - The User directive sets the userid used by the server to answer requests. This setting determines the server’s access. Any files inaccessible to this user will also be inaccessible to your website’s visitors. The default value for User is “www-data”.
Warning
Unless you know exactly what you are doing, do not set the User directive to root. Using root as the User will create large security holes for your Web server.
Group - The Group directive is similar to the User directive. Group sets the group under which the server will answer requests. The default group is also “www-data”.
Apache2 Modules
Apache2 is a modular server. This implies that only the most basic functionality is included in the core server. Extended features are available through modules which can be loaded into Apache2. By default, a base set of modules is included in the server at compile-time. If the server is compiled to use dynamically loaded modules, then modules can be compiled separately, and added at any time using the LoadModule directive. Otherwise, Apache2 must be recompiled to add or remove modules.
Ubuntu compiles Apache2 to allow the dynamic loading of modules. Configuration directives may be conditionally included on the presence of a particular module by enclosing them in an <IfModule> block.
You can install additional Apache2 modules and use them with your Web server. For example, run the following command at a terminal prompt to install the Python 3 WSGI module:
The installation will enable the module automatically, but we can disable it with a2dismod
:
Latest Version Of Apache
And then use the a2enmod
utility to re-enable it:
See the /etc/apache2/mods-available
directory for additional modules already available on your system.
HTTPS Configuration
The mod_ssl
module adds an important feature to the Apache2 server - the ability to encrypt communications. Thus, when your browser is communicating using SSL, the https://
prefix is used at the beginning of the Uniform Resource Locator (URL) in the browser navigation bar.
The mod_ssl
module is available in apache2-common package. Execute the following command at a terminal prompt to enable the mod_ssl
module:
There is a default HTTPS configuration file in /etc/apache2/sites-available/default-ssl.conf
. In order for Apache2 to provide HTTPS, a certificate and key file are also needed. The default HTTPS configuration will use a certificate and key generated by the ssl-cert
package. They are good for testing, but the auto-generated certificate and key should be replaced by a certificate specific to the site or server. For information on generating a key and obtaining a certificate see Certificates.
To configure Apache2 for HTTPS, enter the following:
Note
The directories /etc/ssl/certs
and /etc/ssl/private
are the default locations. If you install the certificate and key in another directory make sure to change SSLCertificateFile and SSLCertificateKeyFile appropriately.
With Apache2 now configured for HTTPS, restart the service to enable the new settings:
Note
Depending on how you obtained your certificate you may need to enter a passphrase when Apache2 starts.
You can access the secure server pages by typing https://your_hostname/url/
in your browser address bar.
Sharing Write Permission
For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they share in common. The following example grants shared write permission to /var/www/html
to the group “webmasters”.
These commands recursively set the group permission on all files and directories in /var/www/html
to allow reading, writing and searching of directories. Many admins find this useful for allowing multiple users to edit files in a directory tree.
Warning
The apache2
daemon will run as the www-data
user, which has a corresponding www-data
group. These should not be granted write access to the document root, as this would mean that vulnerabilities in Apache or the applications it is serving would allow attackers to overwrite the served content.
References
Apache Web Server Version For Pgcps.org In 2011
Apache2 Documentation contains in depth information on Apache2 configuration directives. Also, see the apache2-doc package for the official Apache2 docs. Virtualbox for mac sierra.
Sims 3 cracked for mac. O’Reilly’s Apache Cookbook is a good resource for accomplishing specific Apache2 configurations.
For Ubuntu specific Apache2 questions, ask in the #ubuntu-server IRC channel on freenode.net.
Apache Web Server Version 2.4
Last updated 1 year, 10 days ago. Help improve this document in the forum.