Jump to content
dil_bert

Webadmin: Failed to create virtual server : A virtual server with the same name and port already exists

Recommended Posts

hello dear fellows 

 

currently struggle with Webadmin:  after creating a new vhost i get this error message


Failed to create virtual server : A virtual server with the same name and port already exists

 

but believe it or not - in the list of vhosts it does not appear. 

 

how to go on  - what to do? 

 

Any idea !? 

Share this post


Link to post
Share on other sites

If you already have one with the same name then you probably don't want to make another one, right?

Share this post


Link to post
Share on other sites

hello dear requinix many thanks for the quick reply.

i am really happy to hear from you.  Youre right!! Sure  thing!

but believe it or not - in the list of the allready existing  vhosts it does not appear. 

 

how to go on  - what to do? 

Share this post


Link to post
Share on other sites

The list is wrong? You could also try deleting it manually and re-adding it.

Share this post


Link to post
Share on other sites

hello dear Requinix - many thanks for the hint - i will try it out. 

will come back and inform you bout the results. 

 

have a great day 

Share this post


Link to post
Share on other sites
first of all - i  will update the webmin-tool 
 
 
will have a closer look if i get rid of this behaviour
 
 
found  two great documentations - here
 
 
the howTo on digitalocean is very clear and concise: 
 
see the steps the guys suggest to do in this set  up: 

Prerequisites

Step One — Create the Directory Structure

Quote

The first step that we are going to take is to make a directory structure that will hold the site data that we will be serving to visitors.

Step Two — Grant Permissions

Quote
Quote

 

Now we have the directory structure for our files, but they are owned by our root user. If we want our regular user to be able to modify files in our web directories, we can change the ownership by doing this:
sudo chown -R $USER:$USER /var/www/example.com/public_html
sudo chown -R $USER:$USER /var/www/test.com/public_html
The $USER variable will take the value of the user you are currently logged in as when you press Enter. By doing this, our regular user now owns the public_html subdirectories where we will be storing our content.


Step Three — Create Demo Pages for Each Virtual Host
 

Quote

 

We have our directory structure in place. Let's create some content to serve.

We're just going for a demonstration, so our pages will be very simple. We're just going to make an index.html page for each site.

Let's start with example.com. We can open up an index.html file in our editor by typing:

nano /var/www/example.com/public_html/index.html
In this file, create a simple HTML document that indicates the site it is connected to. My file looks like this:

/var/www/example.com/public_html/index.html
<html>
  <head>
    <title>Welcome to Example.com!</title>
  </head>
  <body>
    <h1>Success!  The example.com virtual host is working!</h1>
  </body>
</html>

 

 

Step Four — Create New Virtual Host Files

Step Five — Enable the New Virtual Host Files

Quote

Now that we have created our virtual host files, we must enable them. Apache includes some tools that allow us to do this.
We can use the a2ensite tool to enable each of our sites like this

:
Step Six — Set Up Local Hosts File (Optional)


Step Seven — Test your Results

Quote


Now that you have your virtual hosts configured, you can test your setup easily by going to the domains that you configured in your web browser:

 

end of the citation of digitalocean - the great howTo : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

 

well i will follow these steps and will have a closer look at the results... 

 

will come back and report all the findings 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.