Accessing websites via ip

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:

You can configure them that way?



what does that mean?

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


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

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

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: