Apache Archives

How to change the default port number for Apache HTTP Server

We all know that as default the Apache HTTP Server will ping to port number 80 . What we have to do when a situation of changing this post number comes? Lets see some simple steps for this… 1. Assume that your new port number is 78 2. cp /etc/httpd/ports.conf /etc/httpd/ports.conf_backupgedit /etc/httpd/ports.conf 3. Find this line- Listen 80 4. Replace with the following line – Listen 78 5. Save the edited file 6. /etc...

What is a subdomain? How to create a subdomain?

What are subdomains? Subdomains are the third level domains that are used to organize your web site content. They are just like folders under your root directory. But they will have a special URL to access. http://www.yoursite.com is the regular URL with out a subdomain. http://products.yoursite.com is an URL with subdomain “products”. Here the: .com is the first level domain yoursite is the second level domain produ...

 

How to : Apache Web Server Logs

Log Files Log files are critical to managing Apache. Managing these logs can provide advance security warnings, provide detailed information in terms of who is visiting your site and where they are coming from and can help you troubleshoot the use of your server resources. The two main log files are listed below from a CentOS server. The access_log file gives you information on who is using your web server and the error_log provides inform...

 

How-to: Install, Configure and Troubleshoot Apache HTTP 2.2.3 on CentOS 5

This may be applicable to all Apache 2 versions. To install Apache Server on CentOS 5: Apache is installed with CentOS 5 by default. To check if the Apache Server is installed # rpm -q httpd Or (with yum, you need to be on line) # yum groupinfo "Web Server" If not installed, then install it with: # yum install "Web Server" To install the text-based browser: # yum install elinks To use elinks: # elinks 127.0.0.1 To access Apache Server on Cen...