LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-01-2013, 12:59 AM   #46
youcantoo_linuxguy
LQ Newbie
 
Registered: Oct 2006
Location: Lebanon, OR
Distribution: PCLinuxOS
Posts: 21

Rep: Reputation: 0

Quote:
Originally Posted by Hangdog42 View Post
Yeah, that is the right file. It might take some tweaking since it is generic and Xubuntu may have done some customizations, but the errors should be obvious when you start apache.


For certain that is not a standard default httpd.conf file. It has been modified to some other system or setup. A standard apache.httpd that comes from apache.org does not contain statements such as "Listen @@Port@@" The Listen directory in a standard httpd.conf would list something like Listen 12.34.56.78:80 or Listen *:80 Again I am assuming that the httpd conf file he has there is done A,) by the distro he is using or B.) a third party installation. The apache.conf file will be found in /etc/httpd/conf directory in a normal install. If it is located anywhere else it has been placed they by the distro itself or by a third party.
 
Old 01-01-2013, 01:22 AM   #47
youcantoo_linuxguy
LQ Newbie
 
Registered: Oct 2006
Location: Lebanon, OR
Distribution: PCLinuxOS
Posts: 21

Rep: Reputation: 0
Quote:
Originally Posted by R3nCi View Post
Good morning,

Yes, I know: 2.36 a.m. is a ridiculous time to be working on a web server, but I don't really have anything else going on right now. (awkward smile)

I have linked to two versions of /etc/apache2/ports.conf below.

New Edit
Default

The "New Edit" version was in effect for a short while, but it seemed to be causing problems (video), so I reverted to the "Default" version, which is what came with Apache (as autoconfigured by the #! 10 Welcome script upon first boot).

I know I have asked this before, but I received two very different answers. How, exactly, should I format the directives in ports.conf? (Sorry, networking lack-of-knowledge-haze)
In your file you have the following line listed

NameVirtualHost 18418718138:4080

This need to be listed in the dotted quad notation...... For example

NameVirtualHost 123.456.789.012:4080

The way you have it currently I am surprised that Apache did not display an error. The command is httpd -t
-t Run syntax tests for configuration files only. The program immediately exits after these syntax
parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax
Error). If -D DUMP_VHOSTS is also set, details of the virtual host configuration will be printed.
If -D DUMP_MODULES is set, all loaded modules will be printed.


I tested your line and ran a configuration check on Apache and got the following.
It not only tells you there is a problem or not, but tells you where the problem is. In you case a syntax error.

[root@localhost conf]# httpd -t
Syntax error on line 212 of /etc/httpd/conf/httpd.conf:
Invalid command 'NameVirtualHost', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost conf]#
 
Old 01-01-2013, 07:49 AM   #48
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by R3nCi View Post
No, I think I misconfigured something. See posts #22 and #23 here: http://crunchbang.org/forums/viewtopic.php?id=23670

It's a little hard to tell from that what the current situation is, so maybe a bit of an update here would be useful.

From what I gather, everything seems to work fine when checked using a LAN addressort, it is only the outside world that has a problem.

For what it is worth, I do something similar with my server, and the Listen directive in my httpd.conf file uses the LAN address:

Listen 192.168.1.45:80

Since Verizon doesn't block port 80, I don't have to go through port nonsense you do, but the server seems to be accessible from the outside world.
 
Old 01-01-2013, 11:54 AM   #49
nobuntu
Member
 
Registered: Mar 2012
Distribution: Debian for server, CrunchBang for everything that's not a server
Posts: 143

Original Poster
Rep: Reputation: 24
Hi, all -

I'm not going to be doing much work on the server today, as it is the first day of the new year. I do, however, think that a bit of an update is in order.

To clarify, I'm no longer running Xubuntu on any system, including the server machine. Every computer that I control is now running CrunchBang Linux, either Statler (which is based on Debian's stable branch) or Waldorf (based on Debian's testing branch). CrunchBang uses Openbox as a WM, which is useful because I'm not quite able to use a pure CLI system yet.

I've done some further modification to Apache files and router settings, as shown at http://crunchbang.org/forums/viewtopic.php?id=23670. I'll post the new versions of the files in a few days. At the moment, the best way to access the server is from this URL: http://184.187.181.33:8080

Feel free to try it and let me know if you can see anything. At the moment, it should just be showing a 404 error (cannot find /), but that's a good start.

Happy new year. Thanks, everyone, for helping me along for so long.
 
  


Reply



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
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 02:12 PM
I need to close x server, how? NoS Sr50 Linux - Newbie 9 09-05-2004 10:29 PM
How do I close my X server? kkj Linux - Newbie 2 04-06-2004 12:59 AM
Close X Server? JREAMER Linux - General 3 06-08-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:04 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
Open Source Consulting | Domain Registration