Apache server configuration

⚠️ Deprecated: Apache artık önerilmemektedir. Lütfen bunun yerine Nginx Server Configuration dokümanını kullanın.

Aşağıda bir sitenin çalışması için gerekli server configuration eklenmiştir. Diğer siteler için de bu işlemlerin tekrarlanması gerekmektedir.

Apache sunucuda aktifleştirilmesi gereken modlar.

# Enable the proxy modules
sudo a2enmod proxy
sudo a2enmod proxy_http

# Enable the SSL module
sudo a2enmod ssl

# Enable Headers module
sudo a2enmod headers

# Restart Apache to apply the changes
sudo systemctl restart apache2

Identity için gerekli virtual host configuration

Aşağıdaki bilgileri /etc/apache2/sites-available/siteadi.conf dosyasına kaydedin.

<VirtualHost *:7073>

    ServerName yourdomain.com:PORT
    ServerAlias www.yourdomain.com:PORT

    
    ProxyPreserveHost On
    ProxyPass / http://localhost:6071/
    ProxyPassReverse / http://localhost:6071/

    SSLEngine on
    SSLCertificateFile /etc/mikromax/STAR_mikromax_com_tr.crt
    SSLCertificateKeyFile /etc/mikromax/mikromax.com.tr.key

    ErrorLog ${APACHE_LOG_DIR}/app_error.log
    CustomLog ${APACHE_LOG_DIR}/app_access.log combined
    
    RequestHeader set X-Forwarded-Proto "https" env=HTTPS    

    # Other SSL configuration options
</VirtualHost>

Bu işlemi yaptıktan sonra aşağıdaki komutları çalıştırarak siteyi aktif hale getirebilirsiniz.

a2ensite siteadi.conf
systemctl reload apache2
systemctl restart apache2 

Projelerin portları şu şekilde olmalıdır.

  1. identity:6071
  2. api: 6072
  3. web:6073
  4. printing: 6074
  5. integration: 6075
  6. notification: 6076
  7. bpm: 6077
  8. extension: 6078
  9. cargo: 6079
  10. customTrigger: 6080
  11. reporting:6081