LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-19-2005, 10:41 AM   #1
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Rep: Reputation: 15
Help with apache server dir and port forwarding


Hey I need a bit of help. I'm running Ubuntu. I have a DSL connection to my router, and then router to ubuntu with a static IP. I have two problems. I have a 8gb secondary drive in my PC, that is FAT32 and mounted to /webserver. I want to have all my webserver files in there for my website. In httpd.conf though, when I change the directory from /var/www to /webserver I have some trouble. When I try to access the site in a browser it says forbidden you do not have permission to access index.html. I know it's something with permissions but I'm not quite sure how to set them so that my user leemoreau can put files in there and it will be visible online.

Secondly, I use zoneedit for dynamic dns update. It updates my IP fine, but when I go to my IP or domain in a web browser, it goes to my DSL modem configuration page. I've turned on port forwarding in the router to forward port 80 traffic to my ip 192.168.3.103 on my ubuntu box but it doesn't seem to work. Is this something with apache or my router or? Thanks so much!
 
Old 03-20-2005, 06:44 AM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
I can't be of much help,but since no one else answered I will try,see if this helps;
http://www.dslwebserver.com/main/fr_...ing-range.html
For the appache stuff,did you create the apache group?Are you using apache or apache2?good luck
 
Old 03-20-2005, 08:23 AM   #3
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Hey I'm using apache 1.3 I believe. I don't think I set any group for it not really sure how.. I tried that guide still doesn't work. I don't think it's a problem with port forwarding because I've always used apache in Windows and it's worked fine. It's just weird that it keeps showing my DSL modem configuration page so something isn't right... :S
 
Old 03-20-2005, 09:01 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
Look under /etc/ Do you see apache2 there,I think you have apache2 not sure,
apache and apache2 set up a little different.I'm using apache2,I have it working,but you do have to set it up as the defaults are very secure,I guess unlike windows,I really don't know have not used windows,except a little at work.I'm no expert but we should be able to get it working on your LAN,getting it to the WAN will be more work.
 
Old 03-20-2005, 09:14 AM   #5
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Hey no it's apache 1.3. I actually uninstalled and just put 2 on and it does the same thing. Not sure about groups like you said? I'm not that great with apache, do I need to change something in the config file to make it take over instead of the dsl modem?
 
Old 03-20-2005, 09:16 AM   #6
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Sorry just wanted to add as well, if I go to localhost in my browser, or type in my ubuntu box's IP on my other systems the web server works fine. It's just when I go to my ip address directly. I use zone edit for dns server, so I type www.invution.com in a browser, press enter and my modem config comes up. Same with typing the IP of my internet connection in directly.
 
Old 03-20-2005, 09:48 AM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
When your at the modem conf page is port 80 open.You said it worked on windows?On the modem conf page did you enable port forwarding to the debian(ubuntu) box.Just some stuff to check.I'm not that great on this stuff.Just stick with apache2 for now.Look in /etc/apache2/apache2.conf and /etc/apache2/commonapache2.conf In commonapache2.conf look at User and Group in apache.conf need to uncomment
#ServerName and add www.invution.com this is for apache,just different conf files
http://www.start-linux.com/articles/article_78.php
And don't forget to restart apache2 I think its /etc/init.d/apache2 restart
what happens
Is the debian box set up like this
http://www.aboutdebian.com/proxy.htm

Last edited by comprookie2000; 03-20-2005 at 09:57 AM.
 
Old 03-20-2005, 09:54 AM   #8
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
K I'll try that. The modem conf page only shows status like what my IP is and lets me log in. I have Bell Sympatico DSL, instead of using PPPoE it's changed so you go to the modem conf page, enter ur ID and password and the modem will constantly stay logged in, so on the computer side it might as well be a LAN connection or cable or what not. My router acts like the dsl modem is just a regular lan and uses DHCP. I'm not sure how to check if port 80 is open?
 
Old 03-20-2005, 09:57 AM   #9
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
Here's some more info from the page and such. My ubuntu box is 192.168.3.103. The router gateway is 192.168.3.1. The DSL modem is 192.168.2.1. When I go into the modem config there's a button that says "Change to bridge mode" and when I press says are you sure? So I'm not sure if that helps or anything..
 
Old 03-20-2005, 10:04 AM   #10
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I fixed it guys thanks so much. Not sure if it was the bridge mode or what. I clicked that but now I can't go back to the modem website anymore lol oh well. But either way in my router instead of letting it connect using DHCP I told it to connect via PPPoE. Before the router was showing my LAN IP as like 192.168.2.10 which is the modem's ip given to the router, but with PPPOE it has a proper 65. whatever one now and it works, thanks sooo much I really appreciate it. My other question was do you know how to properly change the server http files to /webserver instead of /var/www? I tried and when I try toa ccess it it says forbidden you do not have permission.
 
Old 03-20-2005, 10:08 AM   #11
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
I don't want to say anything cause I'm not sure.See if the mod's will move this thread to Linux - Networking Just hang in there someone will come to the rescue!
 
Old 03-20-2005, 10:11 AM   #12
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,290
Blog Entries: 5

Rep: Reputation: 53
Look in those conf files and see if it is set up as user apache and group apache
Try to add apache to the users group with "usermod -g apache -G users apache", make sure the chmoding is correct and refresh.

Last edited by comprookie2000; 03-20-2005 at 10:20 AM.
 
Old 03-20-2005, 10:28 AM   #13
leemoreau
Member
 
Registered: Jan 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I just tried that it says user apache does not exist, and group apache does not exist?
 
Old 03-25-2005, 09:56 AM   #14
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Rep: Reputation: 30
leemoreau,

Here are a couple of suggestions / questions. I had the same issue with the router showing up instead of my webpage when I type the url in the browser.

I believe the problem was in the host file. Also I made some changes to the network card and how it polls for IPs. DHCP should work fine because of the ZoneEdit. You want your router to be DHCP so that when you provider updates it, the changes are replicated to ZoneEdit and the DNS’ change.

Apache in that release should have a group (apache) and user (apache) that was defined with the install. When you go into your user and group configuration be sure to check the option for showing everything. I believe it defaults to the short list.

I am having some confusion about the back-end configurations, i.e. Forward and reverse zones, host files, etc… I am not sure how these should be configured in relationship with Zoneedit; since zoneedit controls A, and PTR records on their site?

Any suggestions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port forwarding apache from 80 to 8080 chess Linux - General 11 09-27-2005 02:21 PM
Port Forwarding for Apache IlyaZ Linux - Networking 14 05-15-2005 04:41 AM
Apache Log broke using iptables and port forwarding rwyarbrough Linux - Networking 1 01-14-2004 08:32 AM
port forwarding problem using netgear dg814 and apache tommo_a Linux - Networking 0 10-16-2003 08:46 AM
seperate apache, port forwarding kires Linux - General 2 04-24-2002 12:37 AM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration