Full width home advertisement

Post Page Advertisement [Top]


Ini salah satu masalah lagi yang saya dapati ketika Upgrade Server Ubuntu 12.04 Ke Ubuntu Server 14.04 :

" The requested URL /squid-reports was not found on this server "

atau akan menemui halaman "Apache2 Ubuntu Default Page " seperti gambar dibawah ini bila mengakses langsung pada ip-server server ubuntunya.




Awalnya ini membuat saya bingung dan saya abaikan saja, saya berasumsi sarg ataupun lightsquid menjadi rusak alias tidak bisa diakses disebabkan proses upgrade ke 14.04, karena kurang teliti lalu langsung saya instalasi ulang sarg dan masalah masih sama seperti diatas.

Setelah dengan sabar saya mencoba mencari akar dari permasalahan ini, dan mencoba membaca penjelasan pada " Apache2 Ubuntu Default Page " mengenai apache versi 2.4.7.

" This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator. "
Ding !.... busyet dah!!!... Baru deh saya nyambung  >.<"
sebab :
- Notifikasi pada gambar diatas jelas-jelas apache2 telah terinstal dengan baik & berfungsi
- Sarg juga begitu, saat instalasi dan cek konfigurasi + sikronisasi ( sarq -x ) berjalan juga tanpa ada error ? 
.... Hanya perlu konfigurasinya disesuaikan kembali :D


Dalam kasus saya cara mengatasinya adalah sebagai berikut :

1. Edit file yang dimaksudkan oleh halaman " Apache2 Ubuntu Default Page " tsb yaitu 000-default.conf

# nano /etc/apache2/sites-available/000-default.conf

2. Lalu ubah :

# However, you must set it for any further virtual host explicitly.
        #ServerName ........

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,

menjadi

# However, you must set it for any further virtual host explicitly.
        ServerName localhost

ServerAdmin webmaster@localhost
DocumentRoot /var/www/

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
3. Kemudian di save & exit.

4. Jalankan perintah service apache2 restart

4. Coba akses kembali sarg ataupun ligthsquid atau apalah yang memakai apache2, seharusnya sudah bisa ;)


Sumber : http://ecaknyo.blogspot.com/2014/05/the-requested-url-squid-reports-was-not.html

No comments:

Post a Comment

Bottom Ad [Post Page]