custom configuration portal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    custom configuration portal

    Hello, can someone help me? I've configured everything, but the redirection still goes to my instance instead of the portal with the specified ID.

    PHP Code:
    
    
    # Virtual Host for HTTPS (Port 443)
    <VirtualHost *:443>
        ServerName portage.test-t.com
        DocumentRoot "${INSTALL_DIR}/www/intra/"
    
        SSLEngine on
        SSLCertificateFile "C:/Certbot/live/portage.test-t.com/cert.pem"
        SSLCertificateKeyFile "C:/Certbot/live/portage.test-t.com/privkey.pem"
    
        <Directory "${INSTALL_DIR}/www/intra/">
            Options +Indexes +Includes +FollowSymLinks +MultiViews
            AllowOverride All
            Require all granted
        </Directory>
    
        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteRule .* - [E=ESPO_PORTAL_ID:6630dd969b6f0b8f1]
        </IfModule>
    
        Alias /client/ "${INSTALL_DIR}/www/intra/client/"
        Alias /api/v1/ "${INSTALL_DIR}/www/intra/public/api/v1/"
    </VirtualHost>
    Attached Files
  • abidoss
    Senior Member
    • Mar 2023
    • 230

    #2
    I also tried this.


    PHP Code:
    
    
    # Virtual Host for HTTPS (Port 443) 
    <VirtualHost *:443>
        ServerName portage.consult-it.com
        DocumentRoot "${INSTALL_DIR}/www/intra/public/portal"
    
        SSLEngine on
        SSLCertificateFile "C:/Certbot/live/portage.test-t.com/cert.pem"
        SSLCertificateKeyFile "C:/Certbot/live/portage.test-t.com/privkey.pem"
    
        <Directory "${INSTALL_DIR}/www/intra/public/portal">
            Options +Indexes +Includes +FollowSymLinks +MultiViews
            AllowOverride All
            Require all granted
        </Directory>
    
        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteRule .* - [E=ESPO_PORTAL_ID:6630dd969b6f0b8f1]
        </IfModule>
    
        Alias /client/ "${INSTALL_DIR}/www/intra/client/"
        Alias /api/v1/ "${INSTALL_DIR}/www/intra/public/api/v1/"
    </VirtualHost>

    Comment

    • abidoss
      Senior Member
      • Mar 2023
      • 230

      #3
      Up....

      Comment

      Working...