How to apply VirtualHost syntax to web panel

Discussion in 'General' started by kcafe703, Jan 23, 2023.

  1. kcafe703

    kcafe703 New Member

    My website is protected by Cloudflare. The problem is that the visitor IP is recorded as the Cloudflare IP, so I modified the vhost file.
    upload_2023-1-23_20-1-41.png

    It works fine the first time, but after some time the RemoteIPHeader syntax gets deleted on its own.
    I am wondering how to apply the RemoteIPHeader CF-Connecting-IP syntax in the web panel.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Never edit vhost files manually, use the apache directives field on the options tab of the website instead to add additional config.
     
    kcafe703 likes this.
  3. kcafe703

    kcafe703 New Member

    upload_2023-1-23_20-32-9.png
    Can I apply it as above?
     
  4. kcafe703

    kcafe703 New Member

    I applied it like the picture above last time, but it didn't work, but it works this time. thank you.
     
    ahrasis likes this.
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    It does get not get applied when apache refuses to start with the config, so there must have been a typo when you added it the first time. or you did not wait until changes were written to disk.
     
    ahrasis likes this.

Share This Page