Can't get public FTP/site to work..

Socuine

New member
Joined
Apr 1, 2016
Messages
3
Hi all,

I have a question and I hope you can help me with my "problem". I have a BladeVPS with DirectAdmin installed on it. The DirectAdmin portal can be reached by using the URL http://stream.zwarriors.net (including port 2222) which redirects me to the login page of DirectAdmin. I have also created a Domain called test.com and I have an index.html file on that: http://stream.zwarriors.net:2222/CMD_FILE_MANAGER/domains/test.com/public_html/index.html

However, that page is ONLY accessible if you're logged in ..

I'm trying to achieve the following:

I want to use FTP to upload video's and files inside a specific directory, for example, a video file on: http://stream.zwarriors.net/dragonballsuper/episodes/35.mp4

and to be public accessible. How can I achieve this?

Best regards,
Socuine
 
This is an easy way to do it.
Go to your directory from which you want the files public accessible.
Create a .htaccess file in that directory with this content:
Code:
Options Indexes
and you're ready.
 
This is an easy way to do it.
Go to your directory from which you want the files public accessible.
Create a .htaccess file in that directory with this content:
Code:
Options Indexes
and you're ready.

Hi Richard,

Thanks for your reply! I created an .htaccess file within the public_html folder of the domain test.com (and added the code you provided), however, I still need to login in order to access my files while I need those files to be public.

Thanks for reading.
 
Hello Socuine.

That strange?
Have you also tried in a subdirectory? So not in the main public_html folder but for example /public_html/music or something?

Which Linux distro are you running?
And what do you mean by login? There normally is no login if you go to http://www.test.com or http://www.test.com/music because that is what your users should use to access them publicly. You should get an error notice, which error notice do you get?
Do not use the :2222 to visit your site, that's only for entering your DA control panel, you normally do not use that.
 
Hello Socuine.

That strange?
Have you also tried in a subdirectory? So not in the main public_html folder but for example /public_html/music or something?

Which Linux distro are you running?
And what do you mean by login? There normally is no login if you go to http://www.test.com or http://www.test.com/music because that is what your users should use to access them publicly. You should get an error notice, which error notice do you get?
Do not use the :2222 to visit your site, that's only for entering your DA control panel, you normally do not use that.

Hoi Richard :)

Thanks for your reply. I'll try to explain! I have purchased a BladeVPS server from http://www.transip.nl (37.97.169.122) with DirectAdmin installed on that. I have created a domain inside DirectAdmin called stream.zwarriors.net.

I have a seperate hosting account registered at antagonist.nl- this is for zwarriors.net. Inside the DirectAdmin of zwarriors.net I have a created a DNS A record which redirects the DNS control.zwarriors.net to 37.97.169.122:2222 which allows me to swiftly access my DirectAdmin installed on the BladeVPS.

Like I said before, I have created a domain on the DirectAdmin (On the BladeVPS) called stream.zwarriors.net. Inside that domain I created an .htaccess file and placed that inside public_html.

I don't get errors, I only get that whenever I visit control.zwarriors.net or 37.97.169.122 that apache is functionally OK. And when I want to access the index.html file it says I need to login OR when i remove the port number it says this:

Not Found

The requested URL /bla/index.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

URL: http://control.zwarriors.net/bla/index.html
 
Back
Top