Custom Portal URL 501- Not Implemented

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • czcpf
    replied
    Thanks, However I'm using espo 7.* and the documentation clearly shows to use aliases and the below syntax, (ie. to set the DocumentRoot to /path_to_espo/public/portal/ not the main espo dir and to use the rewrite rule as shown below.
    i've spent two days trying to figure this out so if your method works with 7.4 I will try it. Have you tried your method with ESPO 7.4 ?

    THIS DOES NOT SEEM TO BE WORKING

    DocumentRoot /path_to_espo/public/portal/
    Alias /client/ /path_to_espo/client/
    Alias /api/v1/ /path_to_espo/public/api/v1/
    <Directory /var/www/html/> AllowOverride None </Directory>
    <Directory /var/www/html/public/> AllowOverride All </Directory>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=ESPO_PORTAL_ID:{PORTAL_ID}]
    </IfModule>

    yuri can you please confirm your instructions for custom portal and apache work for espo 7.4.* ? I have tried everything under the sun here and it doesn't seem to work. There are no instructions to use re-directs for 7.4 so if there is an alternative that way I am happy to try it.

    When the custom server uses the Alias /api/v1 it errors out

    url: https://{my-custom-portal-domain}/api/v1/portal-access/{my-portal-id}/I18n?default=true
    Status: 501 Not Implemented

    url: https://{my-custom-portal-domain}/api/v1/portal-access/{my-portal-id}/Settings
    Status: 501 Not Implemented​


    Last edited by czcpf; 05-11-2023, 09:43 PM.

    Leave a comment:


  • rabii
    replied
    this might help. https://www.youtube.com/watch?v=wQp9XRf3nk8

    Leave a comment:


  • czcpf
    replied
    Here is my .conf file loaded for my-custom-portal-domain. What am I missing here? Do we also need to add re-directs for 7.4.* ?

    /etc/apache2/conf.d/userdata/ssl/2_4/{username}/{my-custom-portal-domain}/espo-portal-production.conf


    DocumentRoot /home/{username}/public_html/{espo-install-path}/public/portal/
    Alias /client/ /home/{username}/public_html/{espo-install-path}/client/
    Alias /api/v1/ /home/{username}/public_html/{espo-install-path}/public/api/v1/

    <Directory /home/{username}/public_html/{espo-install-path}/>
    AllowOverride None
    </Directory>

    <Directory /home/{username}/public_html/{espo-install-path}/public/>
    AllowOverride All
    </Directory>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=ESPO_PORTAL_ID:{my-portal-id}]
    </IfModule>
    ​

    Leave a comment:


  • czcpf
    started a topic Custom Portal URL 501- Not Implemented

    Custom Portal URL 501- Not Implemented

    Hello,

    I'm using Espo v7.4.3 on apache and following the steps outlined here but it is not working:



    When visiting my custom portal URL any script calling /client/ seems to load just fine

    The two scripts that error out are:

    url: https://{my-custom-portal-domain}/api/v1/portal-access/{my-portal-id}/I18n?default=true
    Status: 501 Not Implemented

    url: https://{my-custom-portal-domain}/api/v1/portal-access/{my-portal-id}/Settings
    Status: 501 Not Implemented

    The page https://{my-custom-portal-domain} does load but with the two above errors and no login screen.

    I am not using websocket

Working...