Hello ntozier
Ok I understand, for the login with an agent I am in the correct path /scp/login.php

I have modified the configuration of the vhost files to include upload as in DocumentRoot
But it still doesn't work, when I login with 365 it redirects me to the url https://soporte.ticket.com:6971/
<IfModule mod_ssl.c>
<VirtualHost *:6971>
ServerName soporte.ticket.com:6971
ServerAdmin rambo@ticket.com
DocumentRoot /var/www/html/osticket/upload/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/private/soporte.ticket.com.crt
SSLCertificateKeyFile /etc/ssl/private/soporte.ticket.com.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
<Directory /var/www/html/osticket/upload>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost *:82>
ServerName soporte.ticket.com:6971
ServerAdmin rambo@ticket.com
DocumentRoot /var/www/html/osticket/upload
RewriteEngine On
ErrorLog ${APACHE_LOG_DIR}/osticket.log
CustomLog ${APACHE_LOG_DIR}/osticket_access.log combined
<Directory /var/www/html/osticket/upload>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>