Difference between revisions of "HTTP File Access via Apache"
m (→Changing the Default Ports) |
m (→Changing Apache's Default Ports) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
− | After updating the file it should look like this: | + | After updating the file it should look roughly like this (comments removed for brevity): |
<pre> | <pre> | ||
− | |||
NameVirtualHost *:8001 | NameVirtualHost *:8001 | ||
Listen 8001 | Listen 8001 | ||
<IfModule mod_ssl.c> | <IfModule mod_ssl.c> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
Listen 4443 | Listen 4443 | ||
</IfModule> | </IfModule> |
Revision as of 21:21, 7 October 2015
For cloud and other applications it can be useful to be able to access files in QuantaStor Network Shares via the HTTP protocol as well as through the standard NFS/CIFS protocols. Apache configuration and security issues are a broad topic which is too much for us to cover in this article. As such this article focuses on how to install apache and how to provide public access to all available network shares via HTTP. From there you can use the many online guides to further tune and adjust the configuration settings to meet your specific application and security requirements for your data.
Fixing Port Conflicts
QuantaStor uses many network interface ports the full list of which can be found in the /etc/init.d/iptables file on the appliance. This includes the default HTTP and HTTPS ports which are port 80 and 443. As such we recommend choosing alternate ports like 8001 and 4443 for the apache web server to be used for HTTP file access.
Changing Apache's Default Ports
Edit the /etc/apache2/ports.conf file to make the default port numbers 8001 and 4443 or some other unused port numbers like so:
nano /etc/apache2/ports.conf
After updating the file it should look roughly like this (comments removed for brevity):
NameVirtualHost *:8001 Listen 8001 <IfModule mod_ssl.c> Listen 4443 </IfModule> <IfModule mod_gnutls.c> Listen 4443 </IfModule>
<VirtualHost *:8001> </pre <pre> Alias /export/ "/export/" <Directory "/export/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>