LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-01-2004, 03:45 AM   #1
GreenerLinux
Member
 
Registered: Aug 2003
Location: Olympia, WA
Distribution: Xandros, Libranet, Mandrake
Posts: 86

Rep: Reputation: 15
Question Looking for port config file


Hopefully there are no dumb questions because it seems like I should know the answer to this one. I'm trying to figure out where in /etc/ the file is that has all of the port info. I want to change the port for my httpd server, which I've done in Apache but it doesn't work. I think the reason is that I need to tell the system I've changed it as well.

 
Old 02-01-2004, 06:19 AM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
If you changed it in apache's httpd.conf file did you restart apache? If you have a firewall is that port opened? If you are doing NAT on a router is that taken care of?

The file you are referring to is /etc/services however you may want to read `man services` to get a strong understanding of it.
 
Old 02-01-2004, 01:56 PM   #3
GreenerLinux
Member
 
Registered: Aug 2003
Location: Olympia, WA
Distribution: Xandros, Libranet, Mandrake
Posts: 86

Original Poster
Rep: Reputation: 15
I use port forwarding on a Netgear router and have it set to forward http to 192.168.0.3 on port 80 (at the moment) which works correctly. I've never installed a firewall but maybe XandrOS 2.0 comes with one that I'm unaware of. I've read through the booklet thoroughly though and never came across any information on one. Also, I always restart Apache after making any changes.

In /etc/services I copied and pasted the port 80 line, changed it to 666, left it uncommented out, then commented out the original line. I restarted networking to apply the changes, then changed the port forwarding on my router to use port 666 for Apache. Maybe it would work if I just changed port forwarding on my router and called the service Apache?

Thanks for the reply.
 
Old 02-02-2004, 08:55 AM   #4
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
You shouldn't be editing /etc/services. ALL you have to do is edit /etc/apache/httpd.conf and then restart apache. Now, fix your router's NAT configuration and properly point your browser to http://192.168.0.3:666
 
Old 02-02-2004, 12:23 PM   #5
GreenerLinux
Member
 
Registered: Aug 2003
Location: Olympia, WA
Distribution: Xandros, Libranet, Mandrake
Posts: 86

Original Poster
Rep: Reputation: 15
Got it figured out. There's no NAT configuration with my router, just port forwarding. I didn't realize that I'd have to include the port number at the end of the IP address. I was trying to make port 666 the default. It works though and my /etc/services file is back to normal.

Thanks for all the help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 01:07 PM
X config tool not creating X config file Pingus Debian 3 05-02-2005 12:49 PM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 09:28 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 02:05 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration