Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache 2 The requested URL / was not found on this server

I'm hosting a couple of webservers. I've set the first one up with no problems. On the second server when I attempt to navigate to it (http://192.168.1.47:99/) I get this error "The requested URL / was not found on this server." I know that the port is being forwarded properly because I can access "http://192.168.1.47:99/phpmyadmin" just fine. I've tried to figure this out for a week or so now and I'm at a loss. Any help would be greatly appreciated!

Ubuntu Linux 10.04 Apache2 php5

I'll provide any additional information that may be needed. Thanks!

Update - Included config files * apache2.conf * httpd.conf * ports.conf * sites enabled

like image 720
Derrick Avatar asked Sep 28 '11 14:09

Derrick


2 Answers

we need to change the following lines to /etc/apache2/apache2.conf: Note :- Change here AllowOverride None to AllowOverride All usingsudo property

Options Indexes FollowSymLinks AllowOverride All Require all granted Now :- Restart your web server sudo /etc/init.d/apache2 restart

It will work now..

like image 93
Sonpal singh Sengar Avatar answered Nov 09 '22 02:11

Sonpal singh Sengar


As far as I understand you, you want your server to respond on Port 99. Your configuration is listening on Port 80 instead. Change the following line in sites-enabled:

<VirtualHost *:80>

to

<VirtualHost *:99>

and in ports.conf

NameVirtualHost *:80

to

NameVirtualHost *:99

Restart your apache. That should do it.

like image 31
Erik Avatar answered Nov 09 '22 02:11

Erik