---
title: Auto-Login with Two Different Authentication URLs under the Same Web Server
slug: singleconnect-reference-guide-3-1-0/auto-login-with-two-different-authentication-urls-under-the-same-web-server
description: Learn how to host two URLs with authentication pages on a single web server and enable auto-login through HTTP-Proxy. Edit a specific property key using regex format and discover how to define multiple WebAppURLs with element type properties. Find out the
docTags: 
createdAt: 2022-07-28T11:33:37.000Z
---

It is possible for two different URLs to exist on the same web server (same IP and Port) and contain authentication pages under two different URLs.

For example, as shown in the following images, there can be two different authentication pages.


::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/za8Jk7kFNqZCuA9X2qYpK_image.png" size="98" width="750" height="411" caption="First Authentication Page" position="center" showCaption="true"}

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/9aH9-SoEAJregpDWtEZR6_image.png "Second Authentication Page")

In this case end users can access and use the auto-login feature with those URLs through HTTP-Proxy on their web browser. To use the auto-login feature, the “http.auto.login.post.url” property key must be edited with a pipe character as required in regex format which allows to catch login boxes on two different URLs.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/SvUH-Gpmh-0Ex3jvh3vTO_image.png" size="62" width="741" height="481" caption="Element Type Properties Information" position="center" showCaption="true"}

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/QqKEe7QLFLDN3CBSb-gRW_image.png" size="62" width="618" height="402" caption="Allowing multiple WebAppURL definitions under Device Properties with regular expression" position="center" showCaption="true"}



The following image shows the correct format if the Desktop Client App is used.

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/H0jauXmaEr7LcDop6LmeN_image.png" size="38" width="344" height="566" position="center" showCaption="false"}

