# Backup wpad files

**URL:** <https://community.ipfire.org/t/backup-wpad-files/13505>\
**Category:** Web Proxy, URL Filter & Update Accelerator\
**Created:** [22 January 2025 17:12 UTC](https://community.ipfire.org/t/backup-wpad-files/13505 "2025-01-22T17:12:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [22 January 2025 17:12 UTC](https://community.ipfire.org/t/backup-wpad-files/13505/1 "2025-01-22T17:12:05Z")

</div>

Hello,

The use of automatic proxy settings is described in the page

> **[Web Proxy Auto-Discovery Protocol (WPAD) / Proxy Auto-Config (PAC)](https://www.ipfire.org/docs/configuration/network/proxy/extend/wpad)**

The file `/srv/web/ipfire/html/proxy.pac` is in the backup

But not the files

`/etc/httpd/conf/vhosts.d/wpad.conf`  
As well as the files linked in `/srv/web/ipfire/wpad`

As they are specified in the **vhost for Apache** paragraph

This setting is used in the case where dynamic DHCP is not used

Could we add them to the backup?

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [22 January 2025 17:20 UTC](https://community.ipfire.org/t/backup-wpad-files/13505/2 "2025-01-22T17:20:49Z")

</div>

> [@pscar13](#):
>
> The file `/srv/web/ipfire/html/proxy.pac` is in the backup

That is because that file is part of the standard installation. Every install has that file.

> [@pscar13](#):
>
> But not the files
> 
> `/etc/httpd/conf/vhosts.d/wpad.conf`  
> As well as the files linked in `/srv/web/ipfire/wpad`
> 
> As they are specified in the **vhost for Apache** paragraph

That is because those files are only created if the user follows that instruction for creating them. So it doesn’t make sense to have them sdecified to be backed up if the user has not created them.

Add them into the `/var/ipfire/backup/include.user` file. This is designed for the user to add in any additional files they want to have backed up.

See the User-defined paths section in the backup documentation  
[https://www.ipfire.org/docs/configuration/system/backup#data-backup](https://www.ipfire.org/docs/configuration/system/backup#data-backup)

---

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [22 January 2025 17:39 UTC](https://community.ipfire.org/t/backup-wpad-files/13505/3 "2025-01-22T17:39:10Z")

</div>

Thanks @bonnietwin

I added the lines

```auto
etc/httpd/conf/vhosts.d/wpad.conf
srv/web/ipfire/wpad
srv/web/ipfire/wpad/*

```

in  
`/var/ipfire/backup/include.user`

👍

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [22 January 2025 19:20 UTC](https://community.ipfire.org/t/backup-wpad-files/13505/4 "2025-01-22T19:20:13Z")

</div>

To be exact. The wpad file **is** backuped by default. It is the file `/srv/web/ipfire/html/proxy.pac`.  
Usually it is distributed by DHCP ( for fixed and dynamic leases ). Only in case of static configuration of the clients you have to supply the information by other means ( vhost for Apache f.e. ). These latter are user modiications, which must be honoured in include.user file.

---

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [22 January 2025 19:41 UTC](https://community.ipfire.org/t/backup-wpad-files/13505/5 "2025-01-22T19:41:47Z")

</div>

Thank you @bbitsch  
I understand that there are several ways to declare the proxy for effective filtering  
In particular for HTTPS filtering which must be declared on the client to work correctly  
I also know that if we declare a static IP we can also manually declare the wpad url on the client  
Choosing which is the “standard” is just a matter of point of view
