Query Regarding Apache httpd.conf

sudhirgoogle used Ask the Experts™

When the browser hit the URL it automatically takes it to URL page.
My question is what configuration steps was done in httpd.conf file to achieve this ?
How does the apache knows that it has to serve the file CMSClient.html that exists under cms directory ?
the user just types the ip in the URL, the apache knows that whenever it receives the request which merely has the ip info then it has to server the file CMSClient.html,   ...... in which section we define this behavior in httpd.conf.

i can provide you the information you need.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Most CMS software either redirects in the index page or uses an '.htaccess' file in the web root to do it.  Although it could be done in the 'httpd.conf' file, it is not normally done there.


in httpd.conf what type of entries should be there for redirection ?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . [L]

# END WordPress
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Put above code in .htaccess file and requests will be redirected
Fixer of Problems
Most Valuable Expert 2014
If you have this installed and working, you should not make any changes until you found out where it is already being done.  @atique_ansari's code above is typical code that might be found in an '.htaccess' file or 'httpd.conf'.  But some CMS's do the redirect in their 'index.php' file found in the web root.  In either case, if you add a second redirect in 'httpd.conf', it probably won't work the way you want.


Thanks for your solution.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial