5c5af7155a
To resolve the challenge of connecting Docker containers from the host without extra user-efforts, Avahi is used to publish the Docker-based test servers (Docker containers) on a local network. It is a free Zeroconf implementation, and it provides multicast DNS (mDNS) service discovery. By default, mDNS only resolves hostname ending with the ".local" domain. In this change, the domain name of test servers is changed to "test-net.qt.local". As stated in the standard, the DNS query for a local domain will be sent to the mDNS multicast address. It avoids the need for root access to modify system files. Task-number: QTQAINFRA-1686 Change-Id: I255fba0720ee6d0e84c9cb5ca9289d4466578922 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Ryan Chu <ryan.chu@qt.io> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
ServerName apache2.test-net.qt.local:80
|
|
|
|
NameVirtualHost *:443
|
|
|
|
<VirtualHost *:80>
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
SSLEngine On
|
|
CustomLog /var/log/apache2/ssl_access.log combined
|
|
ErrorLog /var/log/apache2/ssl_error.log
|
|
</VirtualHost>
|
|
|
|
# default ubuntu config turns off SSLv2 because it is deprecated.
|
|
# Turn it back on so we can test it.
|
|
SSLProtocol all
|
|
|
|
DocumentRoot /home/qt-test-server/www/htdocs
|
|
ScriptAlias /qtest/cgi-bin/ "/home/qt-test-server/www/cgi-bin/"
|
|
ScriptAlias /qtest/protected/cgi-bin/ "/home/qt-test-server/www/htdocs/protected/cgi-bin/"
|
|
Alias /qtest "/home/qt-test-server/www/htdocs/"
|
|
|
|
<Directory "/home/qt-test-server/www/htdocs">
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory "/home/qt-test-server/www/htdocs/rfcs-auth">
|
|
AuthType Basic
|
|
AuthName "Restricted Files"
|
|
AuthUserFile /home/qt-test-server/passwords
|
|
Require user httptest
|
|
</Directory>
|
|
|
|
<Directory "/home/qt-test-server/www/htdocs/auth-digest">
|
|
AuthType Digest
|
|
AuthName "Digest testing"
|
|
AuthDigestProvider file
|
|
AuthUserFile /home/qt-test-server/www/htdocs/digest-authfile
|
|
Require user httptest
|
|
</Directory>
|
|
|
|
<Directory "/home/qt-test-server/www/htdocs/deflate">
|
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml
|
|
Header append Vary User-Agent env=!dont-vary
|
|
</Directory>
|
|
|
|
<Directory "/home/qt-test-server/www/cgi-bin">
|
|
Options +ExecCGI -Includes
|
|
AddHandler cgi-script .cgi .pl
|
|
Require all granted
|
|
</Directory>
|
|
|
|
|
|
<Directory "/home/qt-test-server/www/htdocs/protected/">
|
|
AllowOverride AuthConfig Options
|
|
</Directory>
|