can use my ip to access "public_html"

hi

today i have install my linode…

i want to prepare my forum before i direct my domain here…

so that, i tried to access "public_html" through the ip

but i have noticed that the ip redirect me to this folder:

var/www/index.html

what can i do to make the ip redirect me to this:

/srv/www/mysitename.com/public_html/index.html

???

1 Reply

i think you need to use the ipaddress when you declare the virtualhost, assuming you are using apache2.

ex:

instead of

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct