Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Apache access from internet

  1. #1
    Join Date
    Nov 2016
    Location
    Russia
    Posts
    11

    Default Apache access from internet

    I configured apache server for few sites. All works perfectly in local network.
    But when I try to download files from external network - there are some problems.
    I can download file only if it size is no more then 255 bytes.

    Code:
    wget http://128.0.24.242/README.md
    --2019-06-28 20:21:06--  http://128.0.24.242/README.md
    Connecting to 128.0.24.242:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2215 (2.2K) [application/x-genesis-rom]
    Saving to: ‘README.md.3’
    
    README.md.3                                               0%[                                                                                                                              ]       0  --.-KB/s    in 0s      
    
    2019-06-28 20:21:06 (0.00 B/s) - Connection closed at byte 0. Retrying.
    And all works it file has size less then 256 bytes:

    Code:
    wget http://128.0.24.242/README2.md
    --2019-06-28 20:21:48--  http://128.0.24.242/README2.md
    Connecting to 128.0.24.242:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 255 [application/x-genesis-rom]
    Saving to: ‘README2.md’
    
    README2.md                                              100%[=============================================================================================================================>]     255  --.-KB/s    in 0s      
    
    2019-06-28 20:21:48 (77.8 MB/s) - ‘README2.md’ saved [255/255]
    Can anyone help with this? I have no idea what is wrong. Disabling firewall didn't help

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,002

    Default Re: Apache access from internet

    Probably a restriction of your ISP?
    Henk van Velden

  3. #3
    Join Date
    Nov 2016
    Location
    Russia
    Posts
    11

    Default Re: Apache access from internet

    All works before install 15.1.

    No errors in access log:

    Code:
    128.0.24.242 - - [29/Jun/2019:00:25:29 +0700] "GET /README.md HTTP/1.1" 200 2215 "-" "Wget/1.19.5 (linux-gnu)"

  4. #4
    Join Date
    Nov 2016
    Location
    Russia
    Posts
    11

    Default Re: Apache access from internet

    php files downloads successfully, all other - no

    Code:
    wget http://128.0.24.242/test.php
    --2019-06-28 21:00:23--  http://128.0.24.242/test.php
    Connecting to 128.0.24.242:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 380 [text/html]
    Saving to: ‘test.php’
    
    test.php                                                100%[=============================================================================================================================>]     380  --.-KB/s    in 0s      
    
    2019-06-28 21:00:23 (27.7 MB/s) - ‘test.php’ saved [380/380]

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,143
    Blog Entries
    2

    Default Re: Apache access from internet

    You might need to clarify a bit...

    If you're running the command from your Apache server,
    wget isn't related to Apache, so it won't be an Apache problem.

    You'll have to look at some other cause.
    Consider how big your file is, only a few megabytes? Tens or hundreds of megabytes or larger?
    Are you behind a firewall that might be filtering? Or something installed on your machine besides openSUSE?

    Or, are you actually downloading files to a client?
    If so, and the files are being downloaded from your Apache server,
    Then it's a common question
    eg
    https://stackoverflow.com/questions/...php-and-apache
    And, IIRC there may also be an Apache config setting that limits file size...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,002

    Default Re: Apache access from internet

    Well, in fact you do not download the PHP file, but the HTML file that is created by Apache executing the PHP file.

    I wonder what
    [application/x-genesis-rom]

    is and if Apache does something with that .md file.

    Just trying.
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,002

    Default Re: Apache access from internet

    I found this in the apache coniguration mime.types:
    Code:
    application/x-genesis-rom                        gen md
    What means that a file that ends in .md is send by HTTP as application/x-genesis-rom. But that seams to be some ROM files for (game) consoles. Could it be that those have a restriction?
    Henk van Velden

  8. #8
    Join Date
    Nov 2016
    Location
    Russia
    Posts
    11

    Default Re: Apache access from internet

    Thanks all.
    Don't know what exactly I did. But now it is worked. Seems I just restarted apache

  9. #9
    Join Date
    Nov 2016
    Location
    Russia
    Posts
    11

    Default Re: Apache access from internet

    EnableSendfile Off

    Solved this problem.

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,002

    Default Re: Apache access from internet

    Quote Originally Posted by LokiDrow View Post
    EnableSendfile Off

    Solved this problem.
    I read the Apache documentation about EnableSendfile, but do not see how it helped here .

    But when it helped, I assume we should not complain

    In any case, thanks for reporting back. It might help others.
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •