Introduction

I wanted the default webpage of an internal server to go to the Cgi-bin directory so I could see my configs.

Configuration

Here’s what I did.

Log into the server via SSH.

#sudo su

So I could modify the default webpage as root.

#nano /var/www/index.html

This is the file that needed modifying, I changed it to the following code:

<html>
<head>
<meta HTTP-EQUIV=”REFRESH” content=”0; url=http://rancid/cgi-bin/viewvc.cgi/”>
</head>
</html>

In my case, my internal server is called rancid and this was the page I wanted to access by default. In your case it will be a different server and different page probably so just needs modifying to your required page
.

Nice and easy.

How to Auto Redirect Apache Default Webpage to a Specific Page
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.