HTTP File Access via Apache

From OSNEXUS Online Documentation Site
Revision as of 21:20, 7 October 2015 by Qadmin (Talk | contribs)

Jump to: navigation, search

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 the 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 like this:


NameVirtualHost *:8001
Listen 8001

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    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>