HEX
HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux 2amigos-php74 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: squarehillcompany.com (1002)
PHP: 7.4.25
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //etc/apache2/sites-enabled/015-textpony-prod.2amigos.us-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName textpony-prod.2amigos.us
        ServerAlias textpony.com
        DocumentRoot /var/www/vhosts/textpony-prod.2amigos.us/docroot/

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/coming-soon [NC]
RewriteCond %{REQUEST_URI} !^/images/.*$ [NC]
RewriteCond %{REQUEST_URI} !^/_next/.*$ [NC]
RewriteRule (.*)$ https://textpony.com/coming-soon [R=302,L]

        <Directory /var/www/vhosts/textpony-prod.2amigos.us/docroot>
                Options FollowSymLinks
                AllowOverride All
        </Directory>

#websocket
	RewriteCond %{HTTP:Upgrade} websocket [NC]
	RewriteRule /(.*) ws://localhost:34200/$1  [P]
	ProxyPass / http://127.0.0.1:34200/
	ProxyPassReverse / http://127.0.0.1:34200/
	ProxyRequests Off


        RedirectMatch 404 /\.git
        ErrorLog ${APACHE_LOG_DIR}/textpony-prod.2amigos.us-error_log
        CustomLog ${APACHE_LOG_DIR}/textpony-prod.2amigos.us-access_log common

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/textpony.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/textpony.com/privkey.pem
</VirtualHost>
</IfModule>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName api.textpony.com
        DocumentRoot /var/www/vhosts/textpony-prod.2amigos.us/docroot/

        <Directory /var/www/vhosts/textpony-prod.2amigos.us/docroot>
                Options FollowSymLinks
                AllowOverride All
        </Directory>

        ProxyPass / http://127.0.0.1:34201/
        ProxyPassReverse / http://127.0.0.1:34201/
        ProxyRequests Off

        RedirectMatch 404 /\.git
        ErrorLog ${APACHE_LOG_DIR}/api.textpony-prod.2amigos.us-error_log
        CustomLog ${APACHE_LOG_DIR}/api.textpony-prod.2amigos.us-access_log common

SSLCertificateFile /etc/letsencrypt/live/textpony.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/textpony.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>