Apache does not recognize virtual directory

1

There is a domain that we have made the entries in our DNS pointing to our Linux server where we have Apache / MySql / PHP / Wordpress.

I created the Wordpress folder in / var / www with the name my-site.com .

I created the database and users.

Restored bd backup.

Upload the wrodpress site to the / var / www folder.

In the .htaccess file you have:

  

RewriteEngine On RewriteBase / RewriteRule   ^ index.php $ - [L] RewriteCond% {REQUEST_FILENAME}! -f RewriteCond   % {REQUEST_FILENAME}! -D RewriteRule. /index.php [L]

I have set the configuration for bd, username and password in the wp-config.php file.

I made the configuration in / etc / apache2 / sites-available, where I created a my-site.com configuration file

Activated the site in / etc / apache2 / sites-enabled via sudo a2ensite.

The problem is that when trying to access the site via browser is redirected to another domain of mine on the same server that has nothing to do.

The domain that exists appears on my server, but it has nothing to do with the domain that I reported in the browser.

I have several sites that I setup and it works, but it does not want to work.

    
asked by anonymous 09.12.2017 / 23:40

0 answers