Thread: Apache2 not working right
edit:
figured out, had add ports.conf:
----code:namevirtualhost *:8080 listen 8080
contents of /etc/apache2/sites-available/desktop:
and enabled:code:<virtualhost *:8080> serveradmin webmaster@localhost documentroot /8080 <directory /8080> options followsymlinks allowoverride </directory> errorlog ${apache_log_dir}/error.log # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. loglevel warn customlog ${apache_log_dir}/access.log combined alias /doc/ "/usr/share/doc/" <directory "/usr/share/doc/"> options indexes multiviews followsymlinks allowoverride none order deny,allow deny allow 127.0.0.0/255.0.0.0 ::1/128 </directory> </virtualhost>
and httpd.conf:code:# ls -l /etc/apache2/sites-enabled/ total 0 lrwxrwxrwx 1 root root 26 apr 27 12:11 000-default -> ../sites-available/default lrwxrwxrwx 1 root root 26 apr 27 12:43 desktop -> ../sites-available/desktop
have restarted apache2, , when try localhost:8080, says connection refused:code:servername localhost
anyone know what's going on?code:$ curl -vi localhost:8080 * connect() localhost port 8080 (#0) * trying 127.0.0.1... connection refused * couldn't connect host * closing connection #0 curl: (7) couldn't connect host
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Apache2 not working right
Ubuntu
Comments
Post a Comment