01-08-2005
Just make sure that the Listen directive within httpd.conf is set to whatever port you want to use, e.g.
Listen 8080
Also; ensure that the following directive is inside httpd.conf too...
ServerName localhost:8080
This is all assuming that you just want to browse to this via your LAN and you have no domain, etc.... If you're just running a single "site" locally on your server then there's no real need for a VirtualHost at all.
Out of interest - you say that port 80 is already in use - what is already using this port? This is reserved for http and unless you've got another HTTP server running this port should be free for Apache to use.
Do "apachectl restart" after editing httpd.conf.
Cheers
ZB
9 More Discussions You Might Find Interesting
1. IP Networking
Hi
I have my DNS servers (BIND 8) running on two Solaris 8 boxes. I need to be able to resolve an address blah.xxx.net to an IP address followed by :8080 - (for Tomcat). I tried doing this in my zone file but it failed. Can someone give me a pointer on where this configuration should be done?... (1 Reply)
Discussion started by: korfnz
1 Replies
2. Shell Programming and Scripting
I have copied a simple.xml file into the folder /var/www/html and trying to access it on the brower by giving the command "http://localhost:8080/simple.xml"
but it gives "Connection Failed " Error .
While if i type "http://localhost/" It dispays the contents of the index.html file in the... (2 Replies)
Discussion started by: madhumathikv
2 Replies
3. Solaris
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies
4. Red Hat
Dear all,
I have two machines , Linux 1 and linux 2 ...From one server to another i am trying to telnet port 4902 ....which is not successful.
This port is needed for data transfers for oracle monitoring.
Kinldy can any one suggest how to open this port in linux machine manually...
... (2 Replies)
Discussion started by: jegaraman
2 Replies
5. Red Hat
Hi Experts,
I am receiving below error while trying to connect port 8080.
Could not open connection to the host, on port 8080 : connection refused.
iptables configuration
/etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of... (1 Reply)
Discussion started by: sai_2507
1 Replies
6. Solaris
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
7. AIX
Dear Experts,
I am trying to open 8080 port on my Aix 7.1 server. I made an entry in /etc/services for the port. and refreshed the inetd service. But when I try to telnet localhost 8080, telnet is not happening. connection refused error is coming.
I can able to telnet localhost 23 its working... (9 Replies)
Discussion started by: aix.rockie
9 Replies
8. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
9. UNIX for Beginners Questions & Answers
hi,
i would like to create a bash script that check which port in my Linux server are closed (not in use) from a specific range, port range (3000-3010).
the print output need to be only 1 port, and it will be nice if the output will be saved as a variable or in same file.
my code is:
... (2 Replies)
Discussion started by: yossi
2 Replies
LEARN ABOUT REDHAT
apachectl
apachectl(1) General Commands Manual apachectl(1)
NAME
apachectl - Apache HTTP server control interface
SYNOPSIS
apachectl command [...]
DESCRIPTION
apachectl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the
functioning of the Apache httpd daemon.
NOTE: If your Apache installation uses non-standard paths, you will need to edit the apachectl script to set the appropriate paths to your
PID file and your httpd binary. See the comments in the script for details.
The apachectl script returns a 0 exit value on success, and >0 if an error occurs. For more details, view the comments in the script.
Full documentation for Apache is available at http://httpd.apache.org/
OPTIONS
The command can be any one or more of the following options:
start Start the Apache daemon. Gives an error if it is already running.
stop Stops the Apache daemon.
restart Restarts the Apache daemon by sending it a SIGHUP. If the daemon is not running, it is started. This command automatically
checks the configuration files via configtest before initiating the restart to make sure Apache doesn't die.
fullstatus Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a
text-based browser such as lynx available on your system. The URL used to access the status report can be set by editing the
STATUSURL variable in the script.
status Displays a brief status report. Similar to the fullstatus option, except that the list of requests currently being served is
omitted.
graceful Gracefully restarts the Apache daemon by sending it a SIGUSR1. If the daemon is not running, it is started. This differs from
a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed
immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log
files are closed before processing them. This command automatically checks the configuration files via configtest before ini-
tiating the restart to make sure Apache doesn't die. On certain platforms that do not allow SIGUSR1 to be used for a graceful
restart, an alternative signal may be used (such as SIGWINCH). graceful will send the right signal for your platform.
configtest Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or detailed information
about the particular syntax error.
help Displays a short help message.
SEE ALSO
httpd(8)
September 1997 apachectl(1)