Using DigitalOcean droplet/vserver with ISPConfig3 - access the sites by IP - cpanel

My problem is that I'd like to be able to use temporary urls for my sites that are still in development phase. With cPanel i had this option:
create a new account (choose username, pass, etc.)
that account is assigned an IP
list all my accounts in the WHM, then click the IP showing for the account in question
a new tab opens, showing in the address bar sth like this: http://85.65.342.388/~username
That works just fine for my needs. So I wonder if something like that is possible having set up the following:
Digital Ocean cloud hosting - droplet created on Ubuntu
Installed Ispconfig3 to manage the server
one (not sure if single) server IP
I can visit my server IP - it opens the test website I uploaded to /var/www of the server when I just started testing the server (prior to installing Ispconfig)
Paths to my newly created accounts are:
/var/www/clients/client1/web1
/var/www/clients/client1/web2
/var/www/clients/client2/web1
etc...
Should I be able to access for example the website having its files in /var/www/clients/client1/web2 in a way that is similar to the above cPanel example?
There is an option in the Ispconfig to add server IPs but I'm unsure how to add them - because my droplet is showing a single IP and I don't see any spots to add additional IPs (in my Digital Ocean account interface).
Also my accounts (sites) have the option to select from predefined IP addresses (select box) but they come with only asterisk (*) shown as default.
Trying to set up new IP addresses via Ispconfig and then selecting one of them from Site's settings didn't help - nothing opens by visiting such an IP.

Related

Can't access my website after trying to move it to another server

I want to move my website to my new virtual server that I bought from another service provider.
I installed Apache Webserver, created a virtuzal host for the website and I changed the DNS in my actual service provider's admin panel pointing to the new server's IP address.
I then realized that I can't access mysql to export my database and I disabled the domain on the new server, changed the DNS back in my old admin, but now I get a ERR_CONNECTION_REFUSED when I try to call the website.
I don't find anything on Google, because everybody wants me to delete browser cookies (which I did), but that doesn't help.
What can I do for getting back the old website and being able to export my MySQL database?
It may well be that your DNS records are still propagating and you need to wait. Try adding an entry in your hosts file to point to the "old" site URL and hit it in your browser. If it works then it's the DNS not completed propagating. Otherwise your error looks like an Apache issue not a MySQL issue.
I simply deleted the virtual host on the new server for the domain and I was able to access the "old" site immediately.
It's still possible, that the DNS just finished propagating, like #George said, but it's very unlikely.

Switching Cpanel site from using Domain to IP?

I am switching our site from one server to another, but need to test its all working without changing the domain, how can I change it so it accepts connections to the IP?
You have tagged Cpanel so if it is Cpanel/WHM,it includes facility of temp URL which generally goes like http://IPaddress/~cpanelusername
This should load the webcontents of your "publichtml" of Cpanel account.
Please specify the details of your controlpanel on both servers if you are not referring to Cpanel-WHM.
I think you are trying to check your site from new server without changing domain nameserver.
To check our domain from new server, You need to update your local PC host file ( C:\Windows\System32\drivers\etc\hosts ) with new IP and your domain so that you can test your domain from new server.

Wrong document root after giving dedicated IP to an account

I'm trying to assign a dedicated IP to an account on my cPanel/WHM installation and I get the default cgi-sys/defaultwebpage.cgi showed when I try to access the website...
When I ping the domain on both my server and at home, I get to good IP (suppose it's 1.1.1.1).
I take a look into /var/cpanel/userdata/website.com (website.com is an example) to see if the documentroot is correctly set and also the IP. Everything is fine. (for ssl and non-ssl)
After, I take a look into the /usr/local/apache/conf/httpd.conf to see if everything was correctly configured and it's also good.
I check if the DNS zone was correctly updated and it is.
I have used WHM to assign the new IP so it should work (I have done this before and everything was fine...).
I use the latest stable version of cPanel/WHM.
When I try to access the link website.com/lol.php, it look into /usr/local/apache/htdocs/ not in /home/website/public_html ...
Also, the SSL work, but not the non-ssl (yesterday I've added a new wildcard SSL to my domain).
The problem was related to a third party product : Varnish.
I had to refresh the address pool to get it working.

Mail domain pointed to another website when typed in a browser

I have my Apache server configured for name-based virtual hosts and have multiple domains pointed to the same IP that is owned by my server.
Before I started a mail server on one of those domains. Each website behaves normally. But last month, I wanted to set up a mail server. I first created an A record (mail.site5.com). Then I created a MX record and pointed it to that A record. And then mail.site5.com is used for the mail server.
But I didn't add a virtualhost for it in the Apache config file. Due to this, I found out today that if I type mail.site5.com into a browser, my first website www.site1.com is opened.
Maybe this is why Google Webmaster couldn't connect to my new site www.site5.com.
Can anyone tell me how I can fix this?

How to create subdomain in IIS6

I'm quite new to the configuration of domains and subdomains.
I already have a subdomain "bar" that belongs to the domain "www.foo.es". When I want to access to the subdomain I just have to type "www.foo.es/bar", everything is alright so far.
What I intend to do is that the subdominion is accessed typing "bar.foo.es".
I've tried some things I found online but none of them worked. Could you tell me how to do this or at least give me some clues or tutorials that actually work?
I'm trying to set all up using the IIS6 properties (not dynamically, as it is not a user thing, just a subdomain that I want to access "directly".
Assuming you are working with a live server that you REMOTE DESKTOP INTO and not a shared hosting account here is what you will need to do:
Let's assume your file system looks like this:
c:\inetpub\wwwroot\www.foo.es { some html files in here}
c:\inetpub\wwwroot\www.foo.es\bar {some html files in here}
Without any custom ISAPI filters installed, you would do this by setting up two WEBSITE's in IIS.
The first website would have a home directory of c:\inetpub\wwwroot\www.foo.es and the 2 host headers "www.foo.es" and "foo.es"
The second website would have a home directory of c:\inetpub\wwwroot\www.foo.es\bar and 1 host header "bar.foo.es"
Once you DNS has a CNAME of "bar" that points to your server and you clear your local dns caches, this should work. If you don't know how to make the DNS change the easiest thing you can do is log into to your domain name control panel from whoever you purchased the domain name with and do the following:
ADD A CNAME RECORD:
For the host enter "bar" for the points to enter "foo.es" and you should be all set.
First of all you need to add an entry in your DNS in which you specify the "bar.foo.es" subdomain and the IP of the server to which it points to.
After that, in IIS you will have to create a site for the new subdomain you have just created. For that: right click on Web Sites -> New Website -> follow the steps normally but when you encounter the text box for the "Host header for this Web site (Default: None)" fill it with your subdomain value ("bar.foo.es").
Alternatively, if your web site is already created, you can bind subdomains to it by right clicking on the site -> properties -> Web site tab -> Advanced (the button near IP address) -> add / remove / edit the domains for your site which are represented by the "Host header value".
Please note that what you have at the moment ("www.foo.es/bar") is not a subdomain but a relative address.