want my welcome page as default page

Here you can discuss every aspect of Debian. Note: not for support requests!

want my welcome page as default page

Postby Guest » 2005-11-24 11:11

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
Guest
 

Postby Jeroen » 2005-11-24 18:02

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.
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby Guest » 2005-11-25 10:15

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
Guest
 

Postby Jeroen » 2005-11-25 17:26

... 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?
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby geoffb » 2005-11-25 21:52

Keep in mind that some ISPs do not allow servers to run on port 80. Check with your service provider.
geoffb
 
Posts: 122
Joined: 2005-10-19 18:09
Location: Calgary, AB

Postby Jeroen » 2005-11-26 00:31

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.
Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
 
Posts: 571
Joined: 2004-04-06 18:19
Location: Utrecht, NL

Postby geoffb » 2005-11-26 05:33

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.
geoffb
 
Posts: 122
Joined: 2005-10-19 18:09
Location: Calgary, AB


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable