PHP access via the Ip address without domain

Post Reply
User avatar
Meister
Posts: 43
Joined: Mon Nov 08, 2021 10:04 am

Hello,

I am coming from HestiaCP and in HestiaCP you could access PHP files via the path /var/www/html via https://IPAdresse. When I upload a file like the admin at myvesta and call there comes the error message it would not exist. How do I get access to PHP files via the Ip address?

best regards
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

In order to do that, you will need to modify both nginx and apache2 config files.
Unfortunately, I never did that, so I can't tell you what exactly you need to modify.
User avatar
Meister
Posts: 43
Joined: Mon Nov 08, 2021 10:04 am

Can you look at the configuration of HestiaCP and take the appropriate configuration from there? Would be nice if it is included in the next update :) .
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

But it sounds me like a little security risk, if we make ip address to read from /var/www/html
Anyway, I will consider to enable this as optional feature, in some of future releases.
Post Reply