Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-09-2010, 07:28 AM
|
#1
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Rep:
|
Acess apache remotely on slackware 13.1
I have installed apache on slackware (I was isntalled slackware without apache) and "It Works" but when I try to access it remotely it returns "404 error". Apache server work pretty well localy either for localhost or IP adress.
thaks by any kind of help.
|
|
|
11-09-2010, 07:51 AM
|
#2
|
Member
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189
Rep:
|
Check in /etc/httpd/httpd.conf that the Document root directory is set to 'Allow from all'. The Document root dir is usually /srv/www/htdocs, and below that declaration is a clause that looks like this:
Code:
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/httpd/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Make sure the next to last line is 'Allow from all'
|
|
|
11-09-2010, 08:22 AM
|
#3
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
No Mr. Udaman, my httpd.conf is with "allow for all" opition and without no coment (#).
I was thinking about a firewall but I do not have no firewall in use here, iptables is empty.
Thanks
|
|
|
11-10-2010, 07:08 AM
|
#4
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
up
Anybody know about system policies menu on KDE4 i was reading about and it look like a filter or something like a firewall. How I disable it and how can I know what file it is making changes?
|
|
|
11-10-2010, 07:13 AM
|
#5
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466
|
Hi
Not sure what the problem is, but error 404 means the web server can't find the file you are asking it for. If there was a firewall problem, you wouldn't get contact with the web server at all. Or maybe you reached a different server?
|
|
|
11-10-2010, 09:39 AM
|
#6
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
Mr. Guttorm, I can access the same page (index.html of server) locally but when a try to access the page from another computer it return time out (and in some browsers it is recognized as error 404). Sorry if I had bad explained my problem.
Thanks
|
|
|
11-11-2010, 07:34 AM
|
#7
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
up
I'm really stuck!
No search returns great results but I think it is not hard this look like a simple thing but I can not to solve AAAAA!!!
|
|
|
11-11-2010, 11:28 AM
|
#8
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
It could be a number of things. Have you looked in the Apache logs (/var/log/httpd)? Look in both the access_log and the error_log. That should give you some clues as to what is happening.
|
|
|
11-11-2010, 01:44 PM
|
#9
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
let me explain it better, the Internet Explorer said error 404 but it is not error 404 the browser do not connect with the server. The log's are empty only irrelevant info. I turn on the httpd and it works but only locally if I try to connect from another computer the computer can not connect to the server.
|
|
|
11-11-2010, 02:04 PM
|
#10
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
Quote:
I try to connect from another computer the computer can not connect to the server.
|
When you say you can't connect from another computer, is that computer on the same network/LAN as the server or is it outside of your network? A description of your network setup might help. Also in your first post you said:
Quote:
Originally Posted by Willian
Apache server work pretty well localy either for localhost or IP adress.
|
By IP address, do you mean a regualr IP address or the local IP address (127.0.0.1)? How are you trying to connect when you get the 404? IP address or name?
|
|
|
11-11-2010, 04:55 PM
|
#11
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
Internet no network. I'm trying to make a http server but no one can not open the pages and is not error 404, is timeout.
|
|
|
11-11-2010, 05:07 PM
|
#12
|
LQ Newbie
Registered: Nov 2010
Posts: 6
Rep:
|
Quote:
Originally Posted by Willian
I have installed apache on slackware (I was isntalled slackware without apache) and "It Works" but when I try to access it remotely it returns "404 error". Apache server work pretty well localy either for localhost or IP adress.
|
- if here you mean by 404, timeout and the page can't be opened (and the 404 is not returned by apache), then
Try:
Listen 80
or
Listen 1.2.3.4:80 (your ip there)
I mean if apache is listening on the external IP ...
PS: if you are behind a router, you need to configure port forwarding. Also make sure the firewall allows the http connection.
PS: Also check the /var/logs/httpd/error_log or access_log, to see if any request is comming in from the remote computer at all. If not, there is nothing wrong with your apache, something is not letting the outside computers connect in, like router, etc ...
Last edited by LyCC; 11-11-2010 at 05:13 PM.
|
|
|
11-11-2010, 05:20 PM
|
#13
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
|
You need to forward traffic to port 80 from your router to your Slackware box, if you want to access your web server from the internet
|
|
|
11-11-2010, 05:39 PM
|
#14
|
Member
Registered: Oct 2010
Location: Earth
Distribution: Slackware64
Posts: 38
Original Poster
Rep:
|
My router is fowarding, on windows I can use apache and all people can access my server but on Slackware I can not make the server accessible.
I use 80 port and the log is free of errors.
|
|
|
11-12-2010, 12:26 AM
|
#15
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,222
|
Quote:
My router is fowarding, on windows I can use apache and all people can access my server but on Slackware I can not make the server accessible.
|
What you mean?
You're dual booting and apache on windows is accessible from outside, while apache on Slackware is not?
If that's the case, check if it's a firewall problem and if apache is listening on all available interfaces:
Code:
iptables -L
netstat -tanpl|grep httpd
|
|
|
All times are GMT -5. The time now is 06:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|