XFileSharing Pro - Do I need a domain for every file server?

Message
Author
User avatar
sib-fan87
Posts: 33
Joined: Jan 04, 2022 8:37 pm

Do I need a domain for every file server?

#1 Postby sib-fan87 » Jan 29, 2023 7:01 am

I'm confused about the file servers. Do I need to purchase a domain for every file server?

If my main site is installed on my 1st server
https://example.com

what domain name will be my 2nd sever be?
Do I just setup the file server without a domain? and just use IPs?
The only issue with using IP is ssl. Wouldn't it affect the SSL on the 1sr server?

Because ssl requires a domain name. So does that mean I need to purchase another domain?


so I'd purchase
https://example2.com

verzing
Posts: 174
Joined: Mar 02, 2011 7:00 pm

Re: Do I need a domain for every file server?

#2 Postby verzing » Jan 30, 2023 6:13 pm

For file servers you can use sub.domain.
E.g server1.example.com, server2.example.com

User avatar
sib-fan87
Posts: 33
Joined: Jan 04, 2022 8:37 pm

Re: Do I need a domain for every file server?

#3 Postby sib-fan87 » Jan 31, 2023 6:18 pm

How does that affect the BB Codes or HTML codes?
Normally this is how BB Codes look like:
If everything is stored on the Main Server and no file server exists. The BB Codes normally looks like this:

Code: Select all

[URL=https://example.com/u4x4tieya4oi/apple.jpg.html][IMG]https://example.com/i/00008/u4x4tieya4oi_t.jpg[/IMG][/URL]
Both the URL & IMG have the same domain.
BBCodes-1Server.jpg
BBCodes-1Server.jpg (28.32 KiB) Viewed 671 times


I setup a test file server with IP only and noticed that it changes the second half of the BB Codes since the file & thumbnails are stored on the files server.
The file server BB Codes looked like this:

Code: Select all

[URL=https://example.com/u4x4tieya4oi/apple.jpg.html][IMG]https://64.123.123.123/i/00008/u4x4tieya4oi_t.jpg[/IMG][/URL]
BBCodesFile-Server-IP.jpg
BBCodesFile-Server-IP.jpg (28.58 KiB) Viewed 671 times
First half is the main server domain and second half is the file server IP.




If i add a file server and give it a subdomain files.example as you have stated the BB Codes would look like this:

Code: Select all

[URL=https://example.com/u4x4tieya4oi/apple.jpg.html][IMG]https://files.example.com/i/00008/u4x4tieya4oi_t.jpg[/IMG][/URL]
The URL and IMG domain have different domains.
BBCodes-FileServerNamed.jpg
BBCodes-FileServerNamed.jpg (28.66 KiB) Viewed 671 times


This just means that as you run out of server space and keep adding file servers
files.example.com
files2.example.com
files3.example.com
files4.example.com

the IMG tags would have different domains. You would not able to move files around from file server to different file server because once BB Codes are posted in forums the IMG tags are hard coded in forums and would not point to the correct files if you moved it to a different file server.


Ideally it would be great to have 1 server and no file servers. But it fills up too fast so file servers are needed

Is there no solution to keep the BB Codes the same domain so when you move files around from different file server to file server the BB Codes wouldn't be affected?

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

Re: Do I need a domain for every file server?

#4 Postby admin » Feb 01, 2023 8:37 am

There's no way to store thumbnails on a separate server. As you noted, they kept on the same server with actual file hosted.