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
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
-
- Debian Developer, Site Admin
- Posts: 483
- Joined: 2004-04-06 18:19
- Location: Utrecht, NL
- Contact:
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.
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.
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
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
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]).Jeroen wrote: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 wrote:Keep in mind that some ISPs do not allow servers to run on port 80. Check with your service provider.
But yes, you're absolutely right.