Merge pull request #661 from g9308370/add_apache_vhost_conf
Add apache2 vhost & example
This commit is contained in:
		| @@ -12,6 +12,8 @@ EXPOSE 80 443 | |||||||
|  |  | ||||||
| WORKDIR /var/www/ | WORKDIR /var/www/ | ||||||
|  |  | ||||||
|  | ADD vhost.conf /etc/apache2/sites-enabled/vhost.conf | ||||||
|  |  | ||||||
| ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"] | ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"] | ||||||
|  |  | ||||||
| CMD ["supervisord"] | CMD ["supervisord"] | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								apache2/sites/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								apache2/sites/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | *.conf | ||||||
|  | !default.conf | ||||||
|  | !default.apache.conf | ||||||
							
								
								
									
										16
									
								
								apache2/sites/default.apache.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apache2/sites/default.apache.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | <VirtualHost *:80> | ||||||
|  |   ServerName laradock.dev | ||||||
|  |   DocumentRoot /var/www/html/ | ||||||
|  |   Options Indexes FollowSymLinks | ||||||
|  |  | ||||||
|  |   <Directory "/var/www/html/"> | ||||||
|  |     AllowOverride All | ||||||
|  |     <IfVersion < 2.4> | ||||||
|  |       Allow from all | ||||||
|  |     </IfVersion> | ||||||
|  |     <IfVersion >= 2.4> | ||||||
|  |       Require all granted | ||||||
|  |     </IfVersion> | ||||||
|  |   </Directory> | ||||||
|  |  | ||||||
|  | </VirtualHost> | ||||||
							
								
								
									
										16
									
								
								apache2/sites/sample.conf.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apache2/sites/sample.conf.example
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | <VirtualHost *:80> | ||||||
|  |   ServerName sample.dev | ||||||
|  |   DocumentRoot /var/www/sample/public/ | ||||||
|  |   Options Indexes FollowSymLinks | ||||||
|  |  | ||||||
|  |   <Directory "/var/www/sample/public/"> | ||||||
|  |     AllowOverride All | ||||||
|  |     <IfVersion < 2.4> | ||||||
|  |       Allow from all | ||||||
|  |     </IfVersion> | ||||||
|  |     <IfVersion >= 2.4> | ||||||
|  |       Require all granted | ||||||
|  |     </IfVersion> | ||||||
|  |   </Directory> | ||||||
|  |  | ||||||
|  | </VirtualHost> | ||||||
							
								
								
									
										1
									
								
								apache2/vhost.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								apache2/vhost.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | Include /etc/apache2/sites-available/*.conf | ||||||
| @@ -102,6 +102,9 @@ services: | |||||||
|             - applications |             - applications | ||||||
|         volumes: |         volumes: | ||||||
|             - ${APACHE_HOST_LOG_PATH}:/var/log/apache2 |             - ${APACHE_HOST_LOG_PATH}:/var/log/apache2 | ||||||
|  |             - ./apache2/sites:/etc/apache2/sites-available | ||||||
|  |             | ||||||
|  |  | ||||||
|         ports: |         ports: | ||||||
|             - "${APACHE_HOST_HTTP_PORT}:80" |             - "${APACHE_HOST_HTTP_PORT}:80" | ||||||
|             - "${APACHE_HOST_HTTPS_PORT}:443" |             - "${APACHE_HOST_HTTPS_PORT}:443" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mahmoud Zalt
					Mahmoud Zalt