Apache

From BluWiki
Jump to: navigation, search

BluServ runs Apache as the main web server. It runs both a standard HTTP server on port 80 as well as HTTPS on port 443.

[edit] Configuration

The main configuration file for Apache is /etc/httpd/conf/httpd.conf. This file loads all the modules, and sets the log files for vhosts that do not define their own (/var/log/httpd/error.log and /var/log/httpd/access.log). The log level is set to debug. The configuration file then goes on to include the files that define the vhosts for different purposes (/etc/httpd/conf/vhosts/blucoders.net for all BluCoders-related services and /etc/httpd/conf/vhosts/hosting for all hosted websites). These files also have almost identical copies with the -ssl suffix that defines the same configuration for websites but with SSL enabled, using BluServ's default certificate. These SSL files can be automatically generated by the makessl.sh script in the vhosts directory.

[edit] Notes

When Apache is stopped then started again (but not on restarting via a single command, i.e. /etc/rc.d/httpd restart), it will prompt for the SSL certificate password if SSL has been enabled. It does not display a message asking for it, it just reads a line of input with no echoing enabled. The SSL certificate password is kept with Exodus.

Personal tools