Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias Apache #28

Closed
Rajaskank opened this issue Oct 27, 2015 · 3 comments
Closed

Alias Apache #28

Rajaskank opened this issue Oct 27, 2015 · 3 comments

Comments

@Rajaskank
Copy link

Hi,

I tried with an alias in apache:

<VirtualHost *:443>
        ServerName ssl.my.domaine
        ## SSL
                SSLEngine on
                SSLProtocol all -SSLv2 -SSLv3
                SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
                SSLCertificateFile /etc/ssl/startssl/my.domaine.crt
                SSLCertificateKeyFile /etc/ssl/startssl/my.domaine.key
                SSLCertificateChainFile /etc/ssl/startssl/sub.class1.server.ca.pem
        ## hubiC
                alias /hb /var/www/hubic2swiftgate/www/
                <Directory "/var/www/hubic2swiftgate/www/">
                        Options Indexes FollowSymLinks
                        AllowOverride All
                        Order allow,deny
                        Allow from all
                </Directory>
                php_admin_flag engine on
        ## other
                alias /other /var/www/other/
                <Directory "/var/www/other/">
                        Options Indexes FollowSymLinks
                        AllowOverride All
                        Order allow,deny
                        Allow from all
                </Directory>
etc...
</VirtualHost>

it must also change in simple.php:

switch($request) {
        case '/hb/v1.0':
        case '/hb/v1.0/':
        case '/hb/auth':
        case '/hb/auth/':
        case '/hb/auth/v1.0':
        case '/hb/auth/v1.0/':
                $mode='swift';
                break;

        case '/hb/register':
        case '/hb/register/':
                $mode='register';
                break;

        case '/hb/usage':
        case '/hb/usage/':
                $mode='usage';
                break;

        case '/hb':
                $mode='home';
                break;

        case '/hb/callback':
        case '/hb/callback/':
                $mode='callback';
                break;

        case '/hb/success':
        case '/hb/success/':
                $mode='success';
                break;

And in hubiC account:
URL: https://ssl.my.domaine/hb/callback/

it works very well !
This is useful if you already have a valid certificate (and free like StartSSL) on your server.

And by the way , exellent work!
I greatly increase the transfer rate with ftp-cloudfs compared to the official client :)

@oderwat
Copy link
Owner

oderwat commented Oct 27, 2015

This is what $_prefix is for. I think you can just change the .httpaccess / simple.php location to the hb directory and set $_prefix="/hb" in the config file. Or if you do not want the whole server to act on PHP files do just what you did for the apache config. And set $_prefix instead of modifying the code.

@Rajaskank
Copy link
Author

Ok,

Works with ´$_prefix="/hb" ;)

@oderwat
Copy link
Owner

oderwat commented Oct 27, 2015

Great!

@oderwat oderwat closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants