Sometime we just can’t control the client is accessing our website either via www or just without www. In virtualhost setting for apache this can be done by adding the
Tag: httpd
Redirect without WWW to a WWW domain for Vhost.Redirect without WWW to a WWW domain for Vhost.
Adding redirect to preferred domain with WWW instead of without www. Use the following . ServerName www.namran.net ServerAlias namran.net RewriteEngine on RewriteCond %{HTTP_HOST} ^namran.net(:80)?$ RewriteRule ^/(.*) http://www.namran.net/$1 [L,R=301] Order deny,allow

httpd:How to add another port for webhostinghttpd:How to add another port for webhosting
Let’s say somehow client want the webservices to be hosted at the different port of default *:80. Just add the following : into /etc/httpd/conf/httpd.conf #Listen 12.34.56.78:80 Listen 80 Listen 8080
Apache Tips : How to force redirect old domain to new domainApache Tips : How to force redirect old domain to new domain
Change the definition of Override in /etc/httpd/conf/httpd.conf # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the
How to force reload a XML / HTML files on serverHow to force reload a XML / HTML files on server
How you wish the browser not to cache the configuration file inside an XML file. adding the following to /etc/httpd/conf/httpd.conf would help a bit. # For XML # Force reload