Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/
Steps to reproduce
1.connect throw domain to site .com/owncloud
2.if connected via 192.x.x.x/owncloud it works
3.
Expected behaviour
Tell us what should happen : connect to login page
Actual behaviour
Tell us what happens instead : error 404, page not found
Server configuration
Operating system: ubuntu 16.04.2
Web server: apache2
Database: mysql
PHP version: 7.0.15-0
ownCloud version (see ownCloud admin page): 9.1.4
Updated from an older ownCloud or fresh install: fresh install
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): nope
ownCloud log (data/owncloud.log)
Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info
{"reqId":"uu9mq0klY\/ayIkdWaZue","remoteAddr":"127.0.0.1","app":"mysql.setup","message":"Specific user creation failed: An exception occurred while executing 'SELECT user FROM mysql.user WHERE user=?' with params [\"oc_root\"]:\n\nSQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'owncloud'@'localhost' for table 'user'","level":3,"time":"2016-08-27T13:23:00+00:00","method":"POST","url":"\/owncloud\/index.php","user":"--"}
{"reqId":"uu9mq0klY\/ayIkdWaZue","remoteAddr":"127.0.0.1","app":"mysql.setup","message":"Database creation failed: An exception occurred while executing 'GRANT ALL PRIVILEGES ON `owncloud` . * TO 'owncloud'':\n\nSQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'owncloud'@'localhost' to database 'owncloud'","level":3,"time":"2016-08-27T13:23:00+00:00","method":"POST","url":"\/owncloud\/index.php","user":"--"}
Integrity status for oC9+
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.