Skip to content
Solved Linux
Solved Linux

How to Access website by IP address – Hestiacp | Solvedlinux

solvedlinux, September 12, 2024September 12, 2024

Whenever you did a new Hestiacp installation it will require to add a domain to run your website or application. When you are just developing to website or application and you just want to test your applicaiton by using by accessing it via IP address you will always get the page ” Success!
Your new web server is ready to use”.

How to Open site with default server ip ?

There are two ways to get done this, It depend on your purpose.

Method 1

When you just require to run your website or apllication for testing purpose or developing purpose you can visit /var/www/html and you will find default index.html file. remove it and upload your content. Then you will able to access your website throught Ip address.

/var/www/html

Method 2

Whenever you have a domain or you have added a fake domain like blabla.com and uploaded content in /home/admin/web/yourdomain.com/public_html you can follow these steps to get fix this. Also whenever you want to access your application from cname record also you have to follow these steps.

For that you will need to edit apache configuration file. For that you need to visit,

/etc/apache2/conf.d

In that directory you will find a .conf file with your ip address [youripaddress].conf something like 68.183.134.110.conf


Listen 68.183.134.110:8443
Listen 68.183.134.110:8080
<VirtualHost 68.183.134.110:8080>
    ServerName 68.183.134.110
    DocumentRoot /var/www/html/
    Alias /error/ /var/www/document_errors/
</VirtualHost>

<VirtualHost 68.183.134.110:8443>
    ServerName 68.183.134.110
    DocumentRoot /var/www/html/
    Alias /error/ /var/www/document_errors/

    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile         /usr/local/hestia/ssl/certificate.crt
    SSLCertificateKeyFile      /usr/local/hestia/ssl/certificate.key
</VirtualHost>
  

You have to clear all the data except first two lines. So when it cleaned it will like this.

Listen 68.183.134.110:8443
Listen 68.183.134.110:8080

Now save the conf file and restart the apache. If you runs nginx also restart it. then you will able to access your website or from ip address in hestiacp. 

sudo service apache2 restart
sudo service nginx restart
Uncategorized

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Fix phpMyAdmin – Error Existing configuration file (/etc/phpmyadmin/config.inc.php) is not readable Hestiacp – Solvedlinux
  • How to Access website by IP address – Hestiacp | Solvedlinux
  • Elementor #18
  • SMTP Error: RCPT TO command failed Rejected because xxx.xxx.xxx.xxx is in a black list at zen.spamhaus.org Error – Hestiacp | Solvedlinux
  • Hello world!

Recent Comments

  1. A WordPress Commenter on Hello world!

Archives

  • September 2024

Categories

  • Uncategorized
©2025 Solved Linux | WordPress Theme by SuperbThemes