Today I wrote my firs application for ReadyNAS OS. It's very, very simple. It just for Proxy Auto Configuration (PAC) / Web Proxy Autodiscovery Protocol (WPAD) so I called it wpad ;-)

The whole "application" serve only one file wpad.dat. It fits in two files: /apps/wpad/http.conf and /apps/wpad/wpad.dat itself. The content of /apps/wpad/http.conf is:

Now when apache starts it creates link:

To more detailed info about applications for ReadyNAS OS see ReadyNAS Applications Specification.

To have WPAD worked I had to configure also my router:

To resolve wpad as 192.168.1.12 (this is address of my NAS) in /etc/dnsmasq.conf I added:

and to in /etc/config/dhcp file in section config dhcp 'lan':

W trybie VirtualHost przestał mi działać alias'y. Żeby to naprawić trzeba zgodnie z dokumentacją przekazać przetwarzanie dalej (pass through), czyli dopisać np.:

w pliku gdzie definiowaliśmy reguły. U mnie jest to plik /etc/httpd/conf/vhosts.d/00_default_vhosts.conf.

Ten kto umie pisze kod, ten kto nie umie pisze książki..., albo blog.

Pon Wt Śr Czw Pt So N
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31