mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-07 14:57:48 +00:00
Apache passenger performance tuning
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
DocumentRoot /var/www/public
|
DocumentRoot /var/www/public
|
||||||
RailsEnv production
|
RailsEnv production
|
||||||
PassengerMaxPoolSize 3
|
RailsBaseURI /
|
||||||
PassengerMinInstances 3
|
|
||||||
PassengerPreStart
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
<Directory "/var/www/">
|
<Directory "/var/www/">
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
<VirtualHost _default_:443>
|
<VirtualHost _default_:443>
|
||||||
DocumentRoot /var/www/public
|
DocumentRoot /var/www/public
|
||||||
RailsEnv production
|
RailsEnv production
|
||||||
PassengerMaxPoolSize 3
|
RailsBaseURI /
|
||||||
PassengerMinInstances 3
|
|
||||||
PassengerPreStart
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
SSLEngine on
|
SSLEngine on
|
||||||
|
|||||||
@@ -69,5 +69,10 @@ ADD ./rails-apache-ssl-config.conf /etc/apache2/sites-available/default-ssl.conf
|
|||||||
ADD ./rails-apache-config.conf /etc/apache2/sites-enabled/000-default.conf
|
ADD ./rails-apache-config.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
RUN a2ensite default-ssl.conf
|
RUN a2ensite default-ssl.conf
|
||||||
|
|
||||||
|
# Add apache tuning stuff
|
||||||
|
RUN echo PassengerMaxPoolSize 3 >> /etc/apache2/apache2.conf
|
||||||
|
RUN echo PassengerPoolIdleTime 120 >> /etc/apache2/apache2.conf
|
||||||
|
RUN echo RailsAutoDetect off >> /etc/apache2/apache2.conf
|
||||||
|
|
||||||
# By default, simply start apache.
|
# By default, simply start apache.
|
||||||
CMD /usr/sbin/apache2ctl -D FOREGROUND
|
CMD /usr/sbin/apache2ctl -D FOREGROUND
|
||||||
|
|||||||
Reference in New Issue
Block a user