Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

want my welcome page as default page

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
Guest

want my welcome page as default page

#1 Post by Guest »

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

Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 483
Joined: 2004-04-06 18:19
Location: Utrecht, NL
Contact:

#2 Post by Jeroen »

1. Configure 'DirectoryIndex' (default something like index.html index.htm, in /etc/apache2/apache2.conf), you probably want to add welcomepage.html there -- alternatively, rename welcomepage.html to 'index.html' and be done with it.

2. Configure apache to listen on port 80 (the default) instead of 8080. Probably see /etc/apache2/port.conf or so. If you've got something else running on port 80 already, uninstall that.

Guest

#3 Post by Guest »

1. but i dont have inde.html file though it is mentioned in httpd.conf under 'DirectoryIndex' so how sud i replace the file.

2. Configure apache to listen on port 80 (the default) instead of 8080. Probably see /etc/apache2/port.conf or so. If you've got something else running on port 80 already, uninstall that.[/quote]

for that i changed port 8080 to 80 in httpd.conf but still it didn't work. also the content of my port.conf file is

Listen 80

Regards
Gauri

Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 483
Joined: 2004-04-06 18:19
Location: Utrecht, NL
Contact:

#4 Post by Jeroen »

... that config file indicates what filename apache will *look* for. So rename your welcomepage (or copy it, whatever) to index.html -- if it exists, it'll be used, otherwise, you get a apache-generated index.

And did you restart apache2 after changing the config?

geoffb
Posts: 122
Joined: 2005-10-19 18:09
Location: Calgary, AB

#5 Post by geoffb »

Keep in mind that some ISPs do not allow servers to run on port 80. Check with your service provider.

Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 483
Joined: 2004-04-06 18:19
Location: Utrecht, NL
Contact:

#6 Post by Jeroen »

geoffb wrote:Keep in mind that some ISPs do not allow servers to run on port 80. Check with your service provider.
Indeed, but locally (on the same computer) it should work. An ISP can only make it not work for connection from the outside to your computer.

geoffb
Posts: 122
Joined: 2005-10-19 18:09
Location: Calgary, AB

#7 Post by geoffb »

Jeroen wrote:
geoffb wrote:Keep in mind that some ISPs do not allow servers to run on port 80. Check with your service provider.
Indeed, but locally (on the same computer) it should work. An ISP can only make it not work for connection from the outside to your computer.
I assumed that since he replaced the IP address he was using with "ip_address" that he didn't want to show his external IP address (since most people are quite comfortable with putting localhost, 127.0.0.1, or a local subnet address [i.e. 192.168.0.101]).

But yes, you're absolutely right.

Post Reply