Recent

Author Topic: TFPHTTPServer and absolute root dir / Windows  (Read 501 times)

krzynio

  • Jr. Member
  • **
  • Posts: 87
    • Krzynio's home page
TFPHTTPServer and absolute root dir / Windows
« on: January 15, 2021, 11:09:55 am »
Hi!
I creted simple HTTP Server using this tutorial:

https://www.freepascal.org/~michael/articles/webserver1/webserver1.pdf

Program is working but it works only if the root directory is in the same folder as exe file.
How can I setup root directory outside of the application folder?
Debian Testing x64 with XFCE 4.14 - Lazarus trunk, FPC 3.0.4
Windows 10 x64 - Lazarus 2.0.10, FPC 3.2.0

egsuh

  • Hero Member
  • *****
  • Posts: 626
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #1 on: January 15, 2021, 11:16:32 am »
It doesn't work on Windows.

Soner

  • Full Member
  • ***
  • Posts: 212
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #2 on: January 15, 2021, 01:04:13 pm »
I made bugreport and bugfix for this issue. But can't find it now.

I had bad experience with TFPHTTPServer on Windows, it hangs after some days. Look at my topics here.
I switched to Indy HTTPServer and my indyhttpserver is working since 3 months without errors.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2751
  • Compiler Developer
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #3 on: January 15, 2021, 01:08:52 pm »
I creted simple HTTP Server using this tutorial:

https://www.freepascal.org/~michael/articles/webserver1/webserver1.pdf

Program is working but it works only if the root directory is in the same folder as exe file.
How can I setup root directory outside of the application folder?

That was fixed in trunk in November and has been merged to 3.2.1, so 3.2.2 will work correctly.

I made bugreport and bugfix for this issue. But can't find it now.

Here.

I had bad experience with TFPHTTPServer on Windows, it hangs after some days. Look at my topics here.

Did you report that problem?


PascalDragon

  • Hero Member
  • *****
  • Posts: 2751
  • Compiler Developer
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #5 on: January 16, 2021, 11:40:23 am »
The main dev of TFPHTTPServer (MvC) does not frequent the forums often (or only when triggered by some other dev). So better report such things on the mailing list or the bug tracker.

egsuh

  • Hero Member
  • *****
  • Posts: 626
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #6 on: January 18, 2021, 02:28:40 pm »
Quote
The main dev of TFPHTTPServer (MvC) does not frequent the forums often

Are they working on FCGI as well?

PascalDragon

  • Hero Member
  • *****
  • Posts: 2751
  • Compiler Developer
Re: TFPHTTPServer and absolute root dir / Windows
« Reply #7 on: January 19, 2021, 09:09:43 am »
Quote
The main dev of TFPHTTPServer (MvC) does not frequent the forums often

Are they working on FCGI as well?

Yes. He's the main author of the whole fpWeb after all.

 

TinyPortal © 2005-2018