Port change error in Apache

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Port change error in Apache

Post by MSB »

Changing the port listen from 80 to 8070 (or any other available port) isn't working on my new install of Gentoox Home 4.0 with apache emerged. Am I missing to change it someplace else? I changed the information in /etc/apache2/httpd.conf using pico. I get the following error when I open up the page after chaging the conf file:

Not Found

The requested URL /phpsysinfo/index.php was not found on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at xbox Port 8070

If I leave it at default 80, it works just fine. I am stumped!
cheesyboofs
Power user
Posts: 239
Joined: Wed Jan 26, 2005 1:32 pm
Location: Luton UK
Contact:

Post by cheesyboofs »

You are doing a

Code: Select all

./etc/init.d/apache2 restart
after the change?
Go fully native, it's the destiny of all Mk1 XboxesImage
The needs of the many out way the needs of the few or the one ...
orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi »

and a

Code: Select all

netstat -a
MSB
Newbie
Posts: 9
Joined: Fri Nov 18, 2005 12:15 am

Post by MSB »

I had to make the following edits to get it working:

pico -w /etc/apache2/httpd.conf
-> Listen xbox:8070

pico -w /etc/conf.d/apache2
-> APACHE2_OPTS="-D SSL -D PHP4 -D DEFAULT_VHOST"

pico -w /etc/apache2/vhosts.d/00_default_vhost.conf
-> NameVirtualHost xbox:8070 and
-> <VirtualHost xbox:8070>
Post Reply