Accessing websites via ip


#1

Hello everyone,

I have a vps and wanted to install some web sites for testing in different folders. example:

wptest1 wptest2 wptest3

Only I do not want to assign any area at these websites. Wanted access via IP. example:

120.120.120.120/wptest1 120.120.120.120/wptest2 120.120.120.120/wptest3

You can configure them that way?

Att.


#2

@paulocarmino,

what does that mean?

Simplest way, Yo can create entry in your /etc/hosts file to access your site

or

you can edit nginx conf for your site and just put server_name 120.120.120.120 in server block.


#3

If you are using Apache on Debian just put your websites in different folders in the /var/www/ folder, or wherever your server root is.

You can check out your server configuration in /etc/apache/sites-enabled and look what is the server_root setting for the default virtualhost (usually 000-default.conf) if you use apache, or /etc/nginx/ if you use nginx


#4

Hello @paulocarmino,

I hope your query is resolved. I am closing this support topic for now.

Feel free to create a new support topic if you have any queries further. :slight_smile:


#5