Results 1 to 3 of 3
Hi All,
when I type http://ip_address:8080/ it redirect to http://ip_address:8080/apache-default so to stop that redirection I comment the line #RedirectMatch ^/$ /apache2-default/ in /etc/apache2/sites-available/default.
Now http://ip_address:8080/ is showing the files ...
- 11-24-2005 #1Just Joined!
- Join Date
- Nov 2005
- Posts
- 13
want my welcome page as default
Hi All,
when I type http://ip_address:8080/ it redirect to http://ip_address:8080/apache-default so to stop that redirection I comment the line #RedirectMatch ^/$ /apache2-default/ in /etc/apache2/sites-available/default.
Now http://ip_address:8080/ is showing the files in /var/www directory
I have few queries to ask
1. How to do that if I type http://ip_address:8080/ I want one welcomepage.html to come up , so how to do that.
2. I don’t want 8080 to type all the times so what to do in that case
Thanks & Regards
Gauri Agrawal
- 12-02-2005 #2Just Joined!
- Join Date
- Dec 2005
- Posts
- 2
First of all change the line that said
RedirectMatch ^/$ /apache2-default/ in /etc/apache2/sites-available/default
so that it reads
RedirectMatch ^/$ / in <<type the location of your welcome.html file>>
the second thing is that browsers automatically use port 80 so typing these in a browser are equivalent
http://localhost:80/ and http://localhost/
to make apache listen on port 80 so you don't have to put :8080 every time either stick Listen 80 in the httpd.conf or change the Listen 8080 that is already there. Or if you are using a VirtualHost make sure it reads
<VirtualHost *:80>
...config options...
</VirtualHost>
that should do the trick
- 12-02-2005 #3Just Joined!
- Join Date
- Dec 2005
- Posts
- 2
just realised I got that redirect wrong it should say
RedirectMatch ^/$ /welcomepage.html in <<type the location of your welcome.html file>>


Reply With Quote
