Giter Club home page Giter Club logo

Comments (9)

oderwat avatar oderwat commented on June 22, 2024

If you get 404 I would check if the vhost really works. You could check if that specific log file receives the access (which should be listed as 404 in the combined log).

Then you need to check if the .htaccess file is being used at all.

I also wonder why you have Port 1443 in the vhost while you have https:// in the hubic account.

from hubic2swiftgate.

Rajaskank avatar Rajaskank commented on June 22, 2024

I use SSLH for SSH and Apache on the same port

I haven't .htaccess in /var/www/hubic2swiftgate

log:

root@ks:/var/www# cat /var/log/apache2/hsgate_ssl_error.log
[Mon Oct 26 15:50:25.717699 2015] [ssl:warn] [pid 6342] AH01909: hb.my.domaine:443:0 server certificate does NOT include an ID which matches the server name

and nothing in /var/log/apache2/hsgate_ssl_access.log

from hubic2swiftgate.

oderwat avatar oderwat commented on June 22, 2024

OK. But the 404 should not appear in the error but in the access (combined) log.

Without an .htaccess file there are no rewrite rules which would explain the 404 error too as the url you access is not available without those.

from hubic2swiftgate.

Rajaskank avatar Rajaskank commented on June 22, 2024
root@ks:/var/www# cat /var/log/apache2/hsgate_ssl_access.log
127.0.0.1 - - [26/Oct/2015:18:28:54 +0100] "GET /register/?client=hubic&password=password HTTP/1.1" 404 2265 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"

What I put in the .htaccess ?

from hubic2swiftgate.

oderwat avatar oderwat commented on June 22, 2024

It is part of the repository: https://github.com/oderwat/hubic2swiftgate/blob/master/www/.htaccess

from hubic2swiftgate.

Rajaskank avatar Rajaskank commented on June 22, 2024

I copied the .htaccess and simple.php in /var/www/hubi2swiftgate and I have this error:

/var/www/hubic2swiftgate/../cache doesn't exists

the hubic2swiftgate folder:

root@ks:/var/www# ls -alh hubic2swiftgate/
total 48K
drwxrwxr-x 5 www-data www-data 4,0K oct.  26 18:40 .
drwxr-xr-x 9 www-data root     4,0K oct.  26 15:07 ..
drwxrwxr-x 2 www-data www-data 4,0K oct.  26 15:07 cache
-rwxrwxr-x 1 www-data www-data  220 oct.  26 18:28 config.php
-rwxrwxr-x 1 www-data www-data  172 oct.  26 15:07 config.php.sample
drwxrwxr-x 8 www-data www-data 4,0K oct.  26 15:07 .git
-rwxrwxr-x 1 www-data www-data   39 oct.  26 15:07 .gitignore
-rwxr-xr-x 1 www-data www-data  147 oct.  26 18:37 .htaccess
-rwxrwxr-x 1 www-data www-data  12K oct.  26 15:07 README.md
-rwxr-xr-x 1 www-data www-data  11K oct.  26 18:43 simple.php
drwxrwxr-x 2 www-data www-data 4,0K oct.  26 18:37 www

from hubic2swiftgate.

oderwat avatar oderwat commented on June 22, 2024

Oh. I see the problem. Your virtual host needs to point into the www directory not in the root of the checked our directory. Then there will be the .htaccess from repository automatically.

I probably should change the readme to make this more clear.

from hubic2swiftgate.

Rajaskank avatar Rajaskank commented on June 22, 2024

Ok, works !!!

Thx a lot :)

from hubic2swiftgate.

oderwat avatar oderwat commented on June 22, 2024

I updated the readme to save others from that problem! TY too for being so patient with it!

from hubic2swiftgate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.