Using a guest VM with Ubuntu, I modified /etc/apache2/ports.conf to listen on port 8010.
After starting mysql and apache2, I went to http://localhost:8010/bugzilla
, however I got a 404 error.
I think that my ports.conf is set up correctly since I see a 404 error, "The requested URL /bugzilla was not found on this server"
shows up on localhost on port 8010 from the host machine.
Please check out my ports.conf and advise me.
ports.conf
NameVirtualHost *:8010
Listen 8010
#<VirtualHost *:8010>
#DocumentRoot /bugzilla
ServerName bugzilla
ServerAdmin webmaster@localhost
# Other directives here
#</VirtualHost>
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Best Answer
you mix too many concepts: port management and DocumentRoot definition.
Here Apache does not find the directory bugzilla in your actual DdocumentRoot. It's not a probleme of port.
Often the documentRoot is in /var/www then bugzilla should be here ; regarding your actual configuration.
edit :
to manage the CGI you will need to add this in your httpd.conf
the better way is to make a dedicated virtualhost otherwise if you crash your apache config ; every service will be down.