Your first step is to list the current vhosts with either httpd -S or
apachectl -S. Edit accordingly. Also, avoid IP:PORT vhost, and use *:PORT
when unsure.

Pay attention to your logs, especially if you get a 302 or 301.

On Sun, Sep 30, 2018 at 2:42 PM Labs Ocozzi <rjtogy1...@gmail.com> wrote:

> I did make somethings tests, i think this problem is the enviroment.I did
> deploy a wordpress in other enviroment and restore database and that
> website work fine. But i did deploy other wordpress in this enviroment and
> the new project work fine too.
>
> But when i restore the database, my wordpress not work and redirect to
> default website.
>
>
> Em 30/09/2018 12:02, Jonathon Koyle escreveu:
>
> If you access the server by ip httpd can't differentiate which vhost you
> are trying to access, so it returns the default.  To access a something
> other than the default you need to include the server name, either as the
> URL, or maybe you could add it to the request with nginx - before you pass
> the request.
>
> On Sat, Sep 29, 2018, 15:01 Labs Ocozzi <rjtogy1...@gmail.com> wrote:
>
>> Hi,  i need a help.
>> I depoy a wordpress website in my httpd enviroment lab, and this website
>> redirect my request for default website, i change this website name,
>> from tiblog.domain to blog.domain. I change database(wordpress) but my
>> website not work. When i acess this website from
>> ip:port[192.168.1.51:8014] my request is redirect to default domain.
>>
>> Follow my enviroment detail and logs:
>>
>> Checklist-Enviroment:
>> default vhost: www.wiki.oduvaldocozzi.intranet
>> vhost: www.blog.oduvaldocozzi.intranet
>> technology: wordpress/php.
>> ip: 192.168.1.51:8014
>> DomainName: www.blog.oduvaldocozzi.intranet
>> reverse proxy: nginx.
>>
>> Logs: When i acess domain in my browser "opera", thats access logs:
>> www.wiki.oduvaldocozzi.intranet:80 192.168.1.50 - -
>> [29/Sep/2018:17:45:27 -0300] "GET / HTTP/1.0" 200 3806 "-" "Mozilla/5.0
>> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.71"
>>
>> configfile:
>> <VirtualHost 192.168.1.51:8014>
>>      DocumentRoot
>> /opt/www/www.blogsfera.d/www.tiblog.oduvaldocozzi.intranet/public_html
>>      ServerName www.blog.oduvaldocozzi.intranet
>>      ServerAlias blog.oduvaldocozzi.intranet
>>      DirectoryIndex index.php index.html
>> </VirtualHost>
>>
>>
>>
>> --
>> Att,
>> BR-RJ.
>> Togy Silva Ocozzy
>> e-mail: rjtogy1...@gmail.com
>> LABS OCOZZI PE.
>>
>>
>> ---
>> Este email foi escaneado pelo Avast antivĂ­rus.
>> https://www.avast.com/antivirus
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
> --
> Att,
> BR-RJ.
> Togy Silva Ocozzy
> e-mail: rjtogy1...@gmail.com
> LABS OCOZZI PE.
>
>
>
> ------------------------------
> [image: Avast logo] <https://www.avast.com/antivirus>
>
> Este email foi escaneado pelo Avast antivĂ­rus.
> www.avast.com <https://www.avast.com/antivirus>
>
> <#m_-2212418428163897982_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

Reply via email to