burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite → Discover →
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • Node.js Hosting Create a dynamic, interactive site with Node.js
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment →
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price

Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base FAQ - Knowledge base Page 22/1
    10 FAQ(s) found
    Redirect web traffic to a specific port

    This guide concerns the redirection of web traffic to a specific port, including when using a dedicated IP and a specific web application (such as Node or Varnish for example).

     

    Prerequisites

    • Add a site to your hosting.
    • Install HAProxy on the Cloud Server.

     

    Redirect web traffic to a specific port

    By default, on Serveur Cloud, web traffic is sent to Apache. To send requests to a Node script or another service (provided it "listens" on a port between 4000 and 4009), you need to go through HAProxy.

    This applies notably to servers Express, Socket.IO, Meteor.js, Nuxt.js, Django, Flask, Ruby on Rails, even possibly Java (J2E), etc.

    For this, you must ensure that the service is listening on a port between 4000 and 4009 (especially with server.listen(4000) for Express or a basic HTTP Node server, but depending on the type of project by other means, a configuration file, in the code or otherwise) and on all interfaces (0.0.0.0).

    It will also be necessary to configure HAProxy as in the example below:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the relevant product.
    3. Click on Fast installer in the left sidebar.
    4. Click on the action menu â‹® located to the right of HAProxy.
    5. Click on Configure:
    6. Choose the desired information and save:

       

     

    Retrieving the source IP of a request

    When you redirect web traffic to your web application, the way requests are processed changes, and the request is first received by a reverse proxy (local to the server) which then forwards the request to the chosen port. Thus, due to the request forwarding, the methods usually used to retrieve the visitor's IP will return the IP of the reverse proxy instead of the visitor's.

    In these cases, to retrieve the real source IP of the visitor, you need to consult an HTTP header named X-Forwarded-For, which will contain the source IPs accumulated during each redirection. This header will therefore contain last the original IP address of the client, allowing the real visitor to be identified.

    Warning: It is important to note that HTTP headers can be manipulated, which presents security risks. To minimize these risks, it is recommended to verify that the request comes from a reliable server before trusting the content of the X-Forwarded-For header. This verification may involve ensuring that the request was transmitted by a trusted intermediary server, identified by a pre-established list of IP addresses. In the case where the site uses a dedicated IP, the trusted servers are:

    • 83.166.133.15
    • 83.166.133.17
    • 83.166.133.16
    • 84.16.92.5
    • 84.16.92.43
    • 10.2.32.255
    • 10.2.34.164


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use JSON

    The PHP extension JavaScript_Object_Notation is available. It is useful for processing JSON data in your PHP web applications, whether to exchange data with web services, store configurations, or communicate with front-end applications written in JavaScript.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Modify an existing Web Hosting offer

    This guide explains how to modify an existing Web Hosting plan to, for example, host additional websites if the maximum site quota is reached, or to obtain a more recent hosting solution to benefit from the latest versions of PHP & MySQL.

     

    Modify the Web hosting offer to…

     

    … order additional websites, disk space, or IPs

    To access the Web hosting configurator:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click on the action menu â‹® located to the right of the relevant item.
    3. Click on Modify the offer:
       
      sign
       
    4. Increase the values you wish to modify.
    5. Click on the Next button to proceed to the payment for the changes made to the hosting:

     

    … switch to a more recent server

    To get a hosting solution on a more recent server and thus benefit from the latest versions of PHP & MySQL, you can either…

    • … refer to this other guide and follow the indicated procedure to the end:
    • … refer to this other guide and follow the procedure indicated until point 4 then click the button to update:
      • If no information banner is displayed, it means you already have a recent hosting offer.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Back up a Web hosting with Acronis on Swiss Backup

    This guide details how to back up data from your Web hostings (shared or Server Cloud) using Acronis on Swiss Backup, the backup solution in an independent Swiss cloud.

     

    Preamble

    • This is a backup solution that allows you to automate the backup of your files if the backups offered by Infomaniak no longer meet your availability or security needs.
    • It is also possible to back up other types of data.
    • Backups are typically performed every 24 hours, depending on the Cloud agent's load.
    • It is not possible to exclude files from the backup: all files will be backed up, which may generate warnings as some system files are protected and not accessible to the client; this is quite normal and common to all hosts.
    • Make your life easier! If needed, **local partners referenced by Infomaniak can handle these procedures**. Launch a **free call for tenders**. They take care of everything, freeing you from technical details.

     

    Creation of the backup space

    Prerequisites

    • Have a Swiss Backup Infomaniak space with an available device quota (minimum 1) for a Acronis website backup:
    • If necessary, increase the device quota according to your needs.
    • Add the device to the Infomaniak Manager to receive the login credentials.
    • Familiarize yourself with the Acronis documentation on this topic: backup / restoration
    • Use a Web hosting service.
    • Know the information of the FTP+SSH user account:
    • Know the information of the MyQSL/MariaDB user account, which must have maximum permissions (read/write/admin) on all the databases and tables you wish to back up:

     

    To configure the backup of a website with Acronis:

    1. Click here to access the Acronis Console with the credentials obtained after adding the device (need help?).
    2. Click on the device addition button to add a device of type Site Web:
    3. Enter the information regarding the FTP type data:
      1. specify a name/description
      2. specify the FTP host
      3. leave port 22
      4. specify the FTP+SSH username
      5. specify the FTP+SSH account password
    4. Click on the Next button:
    5. Enter the information regarding the MySQL/MariaDB databases:
      1. select the radio button corresponding to SSH
      2. indicate the MySQL/mariaDB host
      3. leave the port 3306
      4. indicate the MySQL/mariaDB username
      5. indicate the password for the MySQL/mariaDB account
    6. Click on the Next button (or Skip if there is no data of this type to back up):

     

    Back up the website data

    Once the backup is configured and created, you will find it under **Sites** in the left sidebar:
    Click on the name of your backup to set its recurrence, and start a first copy immediately if necessary.

     

    Access the backed-up files and restore them

    Refer to this other guide if you are looking for information about restoring (partially or completely) your data.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Understand data security, GDPR and LPD

    This guide covers data protection regulations in Switzerland and Europe and the measures taken by Infomaniak to secure your customer data and data within Web Hosting and Mail Services.

     

    Understanding the difference between data security and data confidentiality

    Data security aims to prevent any unauthorized access to your information. It relies on measures such as encryption, firewalls, or VPNs. A security breach can have disastrous consequences: imagine a hacker stealing your entire customer database and demanding a ransom to return it. This type of attack—ransomware—can paralyze a business overnight.

    Today, it is estimated that more than 50% of companies victimized by a cyberattack close within two years.

    Data confidentiality concerns who can access your information and how it is used. Even if your data is secured against hacking, it can be collected, analyzed, and resold... legally.

    Example: you carefully store your customers' information, but unbeknownst to you, a service you use shares—anonymously—this data with third parties. Result? Your competitors can obtain valuable market analyses and target your own customers without ever needing to hack into your systems.

     

    LPD & GDPR

    In Switzerland, the LPD (Federal Data Protection Act) and nLPD (for the "new Law" in effect since September 2023) protects the confidentiality of residents by regulating the collection and processing of personal data by organizations.

    On the other hand, the GDPR (General Data Protection Regulation) of the EU, in effect since May 2018, influences global companies processing the data of European residents, including in Switzerland. While the LPD applies to the data of Swiss residents, the GDPR concerns that of EU residents. Swiss companies managing European data must comply with the GDPR's requirements, including appointing a Data Protection Officer and conducting Data Protection Impact Assessments in case of risky processing.

     

    Your role as an Infomaniak Client

    Regarding the hosted data that belongs to you and if it concerns personal data of your visitors, contacts, and clients, it is up to you to ensure compliance.

    When processing this personal data, it is important to inform users about how and why it is being processed. This is usually done through a privacy statement/charter.

    A GDPR certificate (in PDF format) can be generated and downloaded from the Manager (accessible to organization users who are owners or administrators):

    1. Click here to access DPA management on the Infomaniak Manager (need help?).
    2. Click the Generate button to download the customized PDF document:

    Here are some tips on this topic:

    • Inform about all data processing, not just that related to the website.
    • Ensure easy access to the privacy statement on the website, for example in the footer of each page.
    • In general, it is not necessary to obtain the user's approval for privacy statements (e.g., for forms); it is sufficient to indicate where to find the statement (example Site Creator).
    • Keep in mind that new, more in-depth information rules might require adjustments to existing privacy statements.

    It is crucial to differentiate between the security of the infrastructures where your data is hosted and the management and implementation of data on your side. As a hosting provider, Infomaniak acts as a subcontractor for your RGPD obligations. In this context, its privacy policies and cookie usage, as well as its terms and conditions, provide the necessary guarantees regarding its compliance as a subcontractor.

     
    If necessary, you can find professionals or online guides to help you through the compliance process.

     

    The role of Infomaniak

    Like companies that work with user data, Infomaniak must comply with the LPD and, because some of these users are European citizens, the GDPR as well:

    • The data privacy policy details the data that Infomaniak retains to provide and execute its services
    • The policy related to the protection of your personal data describes Infomaniak's commitments as a subcontractor that hosts all of your data, including personal data

    These commitments are outlined in the general terms and conditions and specific terms and conditions as follows:

    • store your data within data centers exclusively located in Switzerland and never transfer your information outside of these infrastructures
    • apply strict security standards and constantly improve processes to ensure a high level of security across all services
    • notify you promptly in case of a breach of your data
    • ensure transparency with you when Infomaniak uses subcontractors that may process your data
    • strengthen and develop physical security measures to prevent any unauthorized access to the infrastructures where your data is stored
    • Implement physical and/or logical isolation systems (depending on the services) to separate the hosting of different clients; moreover, Infomaniak conducts annual penetration tests to ensure data integrity between clients
    • demonstrate high reactivity in the secure updating of the systems under its responsibility

     

    Manage the cookies of the site infomaniak.com

    When you visit the page infomaniak.com a choice must be made regarding the acceptance of certain cookies. To modify this choice later, access your preferences from the footer of the site:



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Rename a Web Hosting

    This guide explains how to rename a Web hosting present in the Infomaniak Manager within your Organization.

     

    Preamble

    • A Web hosting service is, schematically, the storage space reserved for hosting one or several of your websites.
    • By default, your Infomaniak hosting takes the name of the first site you add to this hosting:
      • You own the domain name "domaine.xyz" and want a site with this domain name…
      • You purchase a web hosting that will be automatically named "domaine.xyz" even if you later add a second site "toto.com".
    • The hosting can be renamed with a more generic name like "My Websites" to better reflect its actual content.
    • This renaming is intended to improve the readability/understanding of the products listed in your Manager and has no impact whatsoever on the web addresses: refer to this other guide to act on the domain name.

     

    Renaming a Web Hosting

    To access the web hosting in order to change the name:

    1. Click here to access the management of your product on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the relevant product.
    3. Click on the Manage button.
    4. Click on Edit name:
    5. Enter the desired name.
    6. Click on Save.


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use ODBC functions in PHP

    This guide concerns the ODBC functions of PHP.

     

    ODBC functions in PHP are only supported on Serveur Cloud.

     

    Open Database Connectivity functions

    These are the functions used to interact with databases via the ODBC (Open Database Connectivity) interface, a standard for accessing data sources uniformly. Here are a few examples of using the ODBC functions of PHP:

    • Being able to read data from an external database and display it on your website
    • Insert or modify data in an external database
    • Perform complex queries on an external database


    Updated 17.06.2025 Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Sites *perso.ch, *.users.ch, *.geneva-link.ch

    The hosting platform for your sites *perso.ch, *.users.ch, *.geneva-link.ch is evolving and this guide presents the procedure to follow to connect to your FTP space.

     

    Change of login credentials

    The current hosting platform uses a prefix for your FTP username. It is in the following format: "persoch_"

    So, if your username was infomaniak, you will now need to use the following user to connect via FTP: persoch_infomaniak. 



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use SSH in PHP with phpseclib

    This guide explains how to work without the PECL SSH2 client module, which is unavailable on Infomaniak Web Hosting and Cloud Servers, by using the phpseclib library instead, which runs in native PHP without requiring any specific extension.

     

    Foreword

    • Using PECL SSH2 client results in errors such as No compatible key exchange algorithms found or Unable to exchange encryption keys in its latest available version.
    • Phpseclib allows for:
      • SSH authentication via password or private key.
      • Remote command execution.
      • Secure file transfer (SFTP).
      • SSH key management.

     

    Using phpseclib

    To integrate an SSH connection into a PHP script, use phpseclib as follows:

    use phpseclib3\Net\SSH2;
    use phpseclib3\Crypt\PublicKeyLoader;
    
    $ssh = new SSH2('domain.xyz');
    $key = PublicKeyLoader::load(file_get_contents('/path/to/private_key'));
    
    if (!$ssh->login('utilisateur', $key)) {
        exit('Authentication Failed');
    }
    
    echo $ssh->exec('ls -la');


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Fix a MySQL error ($ in password)

    This guide details the specific rules to follow when creating a user password with mysqli_connect() that contains the “dollar” character $ on the Infomaniak platforms.

     

    Preamble

    • If you get the error message "Access denied for user" when using mysqli_connect(), and your database user password contains a $ sign, the issue may be due to the way strings work in PHP.
    • The issue may also occur with mail scripts.

     

    Rules to follow

    When the special character $ is used in a user password and is followed by any character other than a number, the variable name is not valid and the substitution does not occur correctly.

    Here are some solutions to fix this:

    • Enclose the password in single quotes: '$******'
    • Ensure that a number directly follows the dollar: "$2*****"
    • Use a backslash to "escape" the dollar sign in the password: “\$****”


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display more results If you cannot find an answer, contact us
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.