Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lara28580's avatar

Set the document root correctly on centos 7

I am struggling two days already to set the correct document root on apache. At first nothing worked I always got the error "Requested page not found", but right now I got it almost to work. The problem is in my url there is the project and public folder and I dont know why, because in my opinion I set it correctly in the apache httpd.conf.

Specifications

OS: Centos 7.3 WebServer: Apache Database: Msql 8 php: 7.2 Shared Hosting

Updated but app and public still in my url!

DocumentRoot "/var/www/html/laravel_app/public"

#
# Relax access to content within /var/www.
#
<Directory "/var/www/html/laravel_app/public">
    AllowOverride All
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html/laravel_app/public">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    #AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

I wanna get rid of laravel_app and public in my url. I really hope someone can help me its annoying...

Best

0 likes
62 replies
D9705996's avatar

Remove the configuration you have added to httpd.conf and create a new file in /etc/httpd/conf.d/laravel.conf with the following

VirtualHost *:80>
  DocumentRoot "/var/www/html/laravel_app/public"

  <Directory "/var/www/html/laravel_app/public">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted

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

  </Directory>
</VirtualHost>

The folder /var/www/html/laravel_app/must contain you laravel application, e.g. app, storage, etc.

Remember to run systemctl reload httpd to apply the configuration

You can then navigate to http://yoursite.example.com

1 like
lara28580's avatar

Did that already problem persists...

My conf

<VirtualHost *:80>  
    ServerAdmin email
    ServerName domain
    ServerAlias domain
    DocumentRoot /var/www/html/app/public/
    <Directory /var/www/html/app>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =domain [OR]
    RewriteCond %{SERVER_NAME} =domain
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Tried your file but the same.

Snapey's avatar

where you have domain in your config does it contain your actual url and are you using that url in your browser addressbar?

1 like
D9705996's avatar

It might be related to SELinux. Can you run sudo setenforce 0 and systemctl reload httpd and try again.

If that doesn't work can you show the output of ls -lha /var/www/html/app/public/

1 like
lara28580's avatar

yep domain is my url and I use it in the browser addressbar but nothing changes ...

lara28580's avatar

Selinux was disabled out of the box.

drwxr-xr-x  5 apache apache 4.0K Oct  9 08:46 .
drwxr-xr-x 14 root   root   4.0K Oct  9 16:19 ..
-rw-r--r--  1 apache apache  593 Oct  9 18:46 .htaccess
drwxr-xr-x  2 apache apache 4.0K Oct  9 08:46 css
-rw-r--r--  1 apache apache    0 Oct  9 08:46 favicon.ico
drwxr-xr-x  2 apache apache 4.0K Oct  9 16:20 img
-rw-r--r--  1 apache apache 1.8K Oct  9 08:46 index.php
drwxr-xr-x  2 apache apache 4.0K Oct  9 08:46 js
-rw-r--r--  1 apache apache  119 Oct  9 16:20 mix-manifest.json
-rw-r--r--  1 apache apache   24 Oct  9 08:46 robots.txt
D9705996's avatar

The contents and permissions of the folder look correct.

When you tried using the Virtual host I provided did you remove all the changes in httpd.conf?

Are you able to reset all your changes and retry as the config above works for me on a vanilla CentOS7 build. If you goto your domain /index.php what do you see? Laravel home page?

A screenshot of the browser output might help.

1 like
Snapey's avatar

when you make a change, make sure to run sudo service apache2 restart ?

1 like
lara28580's avatar

If I do service apache2 restart then I get Failed to restart apache2.service: Unit not found. I have to use service httpd restart

I reinstalled my httpd.conf and copied your laravel.conf code into my app.conf no changes. Get the testing page of apache, because reseted httpd.conf.

D9705996's avatar

@snappy- the OS is centos7 so sudo systemctl restart httpd is equivalent to sudo service apache2 restart from ubuntu/debian

@SmokeTM - one thing I forgot is the default vhosts can cause issues. If you do grep -i virtualhost /etc/httpd/conf.d/*.conf and for each file that isn't related to your laravel app move then to .bkp e.g. mv /etc/httpd/conf.d/default.conf /etc/httpd/conf.d/default.bkp and restart httpd.

It might be worth doing yum reinstall httpd -y to reset apache back out the box.

If this doesn't help can you access you site while running tail -f /var/log/httpd/* and post any output from the command line.

1 like
D9705996's avatar

Get the testing page of apache

I'm sure this is from one of the default virtual hosts in /etc/httpd/conf.d. My last post should hopefully fix this

1 like
lara28580's avatar

If I bkp my welcome.conf file then I can reach my site but the app and public folder are in my url so nothing changed. And only the homepage is viewable for everything else I get

Not Found
The requested URL /app/public/newest was not found on this server.

My domain looks like this

https://domain/app_name/public/newest

D9705996's avatar

Did you see anything in the logs when you tried to access the url using tail -f /var/log/httpd/*?

It might be a global config issue preventing the .htaccess working

1 like
lara28580's avatar

Output

==> /var/log/httpd/access_log <==
83.215.158.176 - - [09/Oct/2018:22:19:38 +0200] "GET /cryptonews/public/ HTTP/1.1" 200 6596 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [09/Oct/2018:22:19:39 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.10 (internal dummy connection)"
83.215.158.176 - - [09/Oct/2018:22:19:40 +0200] "GET /cryptonews/public/about HTTP/1.1" 404 221 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [09/Oct/2018:22:19:40 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.10 (internal dummy connection)"
83.215.158.176 - - [09/Oct/2018:22:19:41 +0200] "GET /cryptonews/public/privacy HTTP/1.1" 404 223 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:22:19:44 +0200] "GET /cryptonews/public/u/profile HTTP/1.1" 404 225 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [09/Oct/2018:22:19:51 +0200] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.10 (internal dummy connection)"
83.215.158.176 - - [09/Oct/2018:22:20:53 +0200] "GET /cryptonews/public/archive HTTP/1.1" 404 223 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:22:20:56 +0200] "GET /cryptonews/public/ HTTP/1.1" 200 6596 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:22:21:47 +0200] "GET /cryptonews/public/newest HTTP/1.1" 404 222 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"

==> /var/log/httpd/access_log-20160717 <==

==> /var/log/httpd/access_log-20181009 <==
83.215.158.176 - - [09/Oct/2018:00:00:45 +0200] "GET /CryptoNews/ HTTP/1.1" 200 2169 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:01:06 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "https://cnews.at/CryptoNews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:01:17 +0200] "GET /CryptoNews/ HTTP/1.1" 200 2169 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:01:53 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:47 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:48 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:49 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:49 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:49 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [09/Oct/2018:00:02:49 +0200] "GET /CryptoNews/ HTTP/1.1" 200 1538 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"

==> /var/log/httpd/error_log <==
[Tue Oct 09 22:01:27.982569 2018] [core:notice] [pid 22597] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Oct 09 22:01:33.124237 2018] [autoindex:error] [pid 22598] [client 83.215.158.176:53651] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 09 22:19:21.487877 2018] [mpm_prefork:notice] [pid 22597] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Oct 09 22:19:22.582717 2018] [suexec:notice] [pid 22711] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 09 22:19:22.583930 2018] [ssl:warn] [pid 22711] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Oct 09 22:19:22.609620 2018] [auth_digest:notice] [pid 22711] AH01757: generating secret for digest authentication ...
[Tue Oct 09 22:19:22.610238 2018] [lbmethod_heartbeat:notice] [pid 22711] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 09 22:19:22.611463 2018] [ssl:warn] [pid 22711] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Oct 09 22:19:22.654594 2018] [mpm_prefork:notice] [pid 22711] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.10 configured -- resuming normal operations
[Tue Oct 09 22:19:22.654625 2018] [core:notice] [pid 22711] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

==> /var/log/httpd/error_log-20160717 <==

==> /var/log/httpd/error_log-20181009 <==
[Mon Oct 08 23:52:41.100928 2018] [ssl:warn] [pid 5869] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Mon Oct 08 23:52:41.128598 2018] [mpm_prefork:notice] [pid 5869] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.10 configured -- resuming normal operations
[Mon Oct 08 23:52:41.128628 2018] [core:notice] [pid 5869] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Oct 08 23:52:42.036978 2018] [autoindex:error] [pid 5870] [client 83.215.158.176:60741] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Oct 08 23:53:55.131880 2018] [autoindex:error] [pid 5872] [client 83.215.158.176:60753] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Oct 08 23:56:41.154187 2018] [autoindex:error] [pid 5870] [client 220.233.11.217:55006] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Oct 08 23:57:49.057454 2018] [php7:warn] [pid 5871] [client 83.215.158.176:60809] PHP Warning:  require_once(/var/www/html/CryptoNews/bootstrap/app.php): failed to open stream: No such file or directory in /var/www/html/CryptoNews/public/index.php on line 38, referer: https://cnews.at/CryptoNews/
[Mon Oct 08 23:57:49.057488 2018] [php7:error] [pid 5871] [client 83.215.158.176:60809] PHP Fatal error:  require_once(): Failed opening required '/var/www/html/CryptoNews/bootstrap/app.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/CryptoNews/public/index.php on line 38, referer: https://cnews.at/CryptoNews/
[Mon Oct 08 23:59:10.164567 2018] [autoindex:error] [pid 5871] [client 179.60.104.170:58735] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 09 00:07:01.957393 2018] [mpm_prefork:notice] [pid 5869] AH00171: Graceful restart requested, doing restart

==> /var/log/httpd/ssl_access_log <==
131.220.6.94 - - [08/Oct/2018:20:08:42 +0200] "POST / HTTP/1.1" 404 198
131.220.6.94 - - [08/Oct/2018:20:08:42 +0200] "GET / HTTP/1.1" 403 4897

==> /var/log/httpd/ssl_error_log <==
[Tue Oct 09 21:11:50.134406 2018] [ssl:warn] [pid 22165] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 21:11:50.164359 2018] [ssl:warn] [pid 22165] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 21:12:13.760501 2018] [ssl:warn] [pid 22196] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 21:12:13.787570 2018] [ssl:warn] [pid 22196] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 21:59:53.098891 2018] [ssl:warn] [pid 22542] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 21:59:53.124902 2018] [ssl:warn] [pid 22542] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 22:01:27.912538 2018] [ssl:warn] [pid 22597] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 22:01:27.957015 2018] [ssl:warn] [pid 22597] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 22:19:22.583500 2018] [ssl:warn] [pid 22711] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name
[Tue Oct 09 22:19:22.611059 2018] [ssl:warn] [pid 22711] AH01909: RSA certificate configured for xas7u3.myvserver.online:443 does NOT include an ID which matches the server name

==> /var/log/httpd/ssl_request_log <==
[08/Oct/2018:20:08:42 +0200] 131.220.6.94 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "POST / HTTP/1.1" 198
[08/Oct/2018:20:08:42 +0200] 131.220.6.94 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET / HTTP/1.1" 4897
D9705996's avatar

From reading the logs you are going to /cryptonews/public/newest in your browser.

Is this your intended URL or do you want this to be /cryptonews/latest

If so try adding this alias to the virtualhost

Alias "/cryptonews" "/var/www/html/cryptonews/public"

From your logs it looks like there's quite a few things being served from this server, e.g. there's some http and https traffic, etc so a lot of places to look at

1 like
D9705996's avatar

@SmokeTM - you have a BIG problem. Due to your original apache config your .env is and has been pubically available which includes all of your credentials.

You must assume that these have been compromised (If I can get them so can anyone else ).

Go to all of your services and revoke these credentials immediately and recreate new ones as well as you app key.

You should also never use the root MySQL user for day to day access to your database ( told you I could see your .env)

Once you have revoked the credentials fixing your apache config and securing your server are the priority to ensure this doesn't recur.

2 likes
Cronix's avatar

Yep. You need to get new keys for recaptcha, mailgun, pusher, and algolia. Change mysql password and app_key as suggested.

APP_URL=http://localhost

That should be set to your actual domain, or some things like asset() and such won't give the correct urls.

It appears that you have redis set up (with NO password), but aren't using it for your cache driver for some reason.

1 like
lara28580's avatar

Thanks guys! Changed everything... How do I set the permissions correctly? I did for files 655 and for directories 755.

I want it to be www.domain.xyz/newest

D9705996's avatar
D9705996
Best Answer
Level 51

@SmokeTM - the issue isn't file permissions but the fact your laravel application is accessible within your webserver. Only the public folder should be accessible and should be the document root. You have apache configured somewhere to have a document root of /var/www/html/ but your application public folder is in /var/www/html/CryptoNews/public

The steps I would take to resolve are

  1. Remove apache completely using yum remove -y httdp
  2. Delete any apache config rm -rf /etc/httpd/*
  3. Reinstall apache yum install -y httpd
  4. Remove any default virtual hosts from /etc/httpd/conf.d
  5. Restart httpd

This will remove anything that has been changed from default and get back to a known good state. At this point you should not be able access anything through your webserver.

Now if you save the below in /etc/httpd/conf.d/cryptonews.conf (I have tailored to your setup so should be a copy and paste)

<VirtualHost *:80>

  DocumentRoot "/var/www/html/CryptoNews/public"
  ServerName www.cnews.at
  ServerAlias cnews.at

  <Directory "/var/www/html/CryptoNews/public">

    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted

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

  </Directory>
</VirtualHost>

Now restart httpd and test if you can get to you application homepage at http://www.cnews.at (It will probably show 500 as your .env needs your new credentials added)

You can now readd your new credentials and your application should be accessible. Just remember to add a separate MySQL user using below logged into Mysql on the command line as you root user

GRANT ALTER, CREATE, CREATE TEMPORARY TABLES, DELETE, DROP, INDEX, INSERT, LOCK TABLES, REFERENCES, SELECT, UPDATE ON cryptonews.*
  TO 'cryptonews'@'localhost' IDENTIFIED BY 'supersecurepassword';
FLUSH PRIVELEGES;

Make sure you use a secure random password that you only use for this database. You can use https://passwordsgenerator.net/ and choose 32 chars (minimum) with the top 7 boxes ticked.

Let me know if you need any help.

1 like
lara28580's avatar

I did everything you said but "website is not reachable"...

Cant use your msql command states error ERROR 1064 (42000): You have an error in your SQL syntax; check the manual .... IDENTIFIED BY msql_password

D9705996's avatar

Make sure you put quotes round you Mysql password. Basic syntax is

GRANT privileges ON database.* TO 'username'@'localhost' IDENTIFIED BY 'password';

I have tried to access http://www.cnews.at/ and get a 404 / not found.

Do you see anything in your http logs that might help identify why apache can't locate you application.

1 like
lara28580's avatar

Mhm in which log do you mean error.log or access.log or both? Should I post the content here?

Maybe it has something to do with my letsencrypt setup, because deleted apache so the configuration ois gone?

D9705996's avatar

@SmokeTM - This wont be related to LetsEncrypt as your not using HTTPS. If you test accessing http://www.cnews.at/ and then do an ls -lhArt /var/log/httpd/* you should see the apache log files with the newest updated ones at the bottom.

For any files that have a timestamp around when you tested you can do tail -n 50 <filename> to get the last 50 lines of the log. if you can share any of the log entries that relate to your test here as it might help.

1 like
lara28580's avatar

Cant reach http always changes to https...

access_log

83.215.158.176 - - [10/Oct/2018:09:48:03 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:48:04 +0200] "GET /cryptonews/ HTTP/1.1" 200 4721 "https://cnews.at/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:48:05 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:48:05 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:48:06 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:48:06 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:51:49 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:09:51:49 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
95.103.227.172 - - [10/Oct/2018:09:52:18 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
107.167.104.142 - - [10/Oct/2018:10:07:33 +0200] "GET /cryptonews/.env HTTP/1.1" 200 836 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
107.167.104.142 - - [10/Oct/2018:10:19:23 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
107.167.104.142 - - [10/Oct/2018:10:19:24 +0200] "GET /svg/500.svg HTTP/1.1" 404 10257 "http://www.cnews.at/" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
83.215.158.176 - - [10/Oct/2018:10:30:04 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:04 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:05 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:08 +0200] "GET / HTTP/1.1" 200 695 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:10 +0200] "GET /cryptonews/ HTTP/1.1" 200 4721 "https://cnews.at/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:11 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:11 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:12 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:12 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:13 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:13 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:17 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:17 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:18 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:30:18 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
71.6.232.4 - - [10/Oct/2018:10:30:57 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:37:08 +0200] "GET /cryptonews/.env HTTP/1.1" 200 836 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:38:49 +0200] "GET /cryptonews/.env HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
83.215.158.176 - - [10/Oct/2018:10:38:49 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
54.204.177.47 - - [10/Oct/2018:11:38:51 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"
54.205.64.51 - - [10/Oct/2018:11:47:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"
66.249.64.22 - - [10/Oct/2018:12:06:06 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.64.21 - - [10/Oct/2018:12:06:06 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
83.136.32.140 - - [10/Oct/2018:13:07:00 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (compatible; at-bot/1.0; +https://crawler.labs.nic.at)"
70.42.131.170 - - [10/Oct/2018:13:09:26 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)"
70.42.131.170 - - [10/Oct/2018:13:09:33 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)"
107.167.116.220 - - [10/Oct/2018:13:25:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
107.167.116.220 - - [10/Oct/2018:13:28:57 +0200] "GET /CryptoNews HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
107.167.116.220 - - [10/Oct/2018:13:29:05 +0200] "GET /Cindex.php HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
107.167.116.220 - - [10/Oct/2018:13:29:09 +0200] "GET /index.php HTTP/1.1" 404 207 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
89.144.213.163 - - [10/Oct/2018:14:03:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
89.144.213.163 - - [10/Oct/2018:14:03:46 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
65.154.226.100 - - [10/Oct/2018:14:28:34 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36"
138.185.165.72 - - [10/Oct/2018:15:13:58 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
61.216.152.135 - - [10/Oct/2018:15:51:00 +0200] "-" 408 - "-" "-"
81.109.75.212 - - [10/Oct/2018:16:08:06 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/69.0.3497.81 Chrome/69.0.3497.81 Safari/537.36"
81.109.75.212 - - [10/Oct/2018:16:08:06 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "http://www.cnews.at/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/69.0.3497.81 Chrome/69.0.3497.81 Safari/537.36"
81.109.75.212 - - [10/Oct/2018:16:08:57 +0200] "-" 408 - "-" "-"
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:03 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:04 +0200] "GET /cryptonews/ HTTP/1.1" 200 4721 "https://cnews.at/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
t
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:05 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:05 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:06 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:48:06 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:51:49 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
1
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:09:51:49 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 95.103.227.172 - - [10/Oct/2018:09:52:18 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
6
-bash: 95.103.227.172: command not found
[root@xas7u3 httpd]# 107.167.104.142 - - [10/Oct/2018:10:07:33 +0200] "GET /cryptonews/.env HTTP/1.1" 200 836 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.104.142: command not found
[root@xas7u3 httpd]# 107.167.104.142 - - [10/Oct/2018:10:19:23 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.104.142: command not found
[root@xas7u3 httpd]# 107.167.104.142 - - [10/Oct/2018:10:19:24 +0200] "GET /svg/500.svg HTTP/1.1" 404 10257 "http://www.cnews.at/" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.104.142: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:04 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:04 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:05 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:08 +0200] "GET / HTTP/1.1" 200 695 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:10 +0200] "GET /cryptonews/ HTTP/1.1" 200 4721 "https://cnews.at/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:11 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:11 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:12 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at
> 83.215.158.176 - - [10/Oct/2018:10:30:12 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: syntax error near unexpected token `('
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:13 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
P
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:13 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:17 +0200] "GET /cryptonews/public/ HTTP/1.1" 500 10252 "https://cnews.at/cryptonews/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:17 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.1
-bash: 83.215.1: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:30:18 +0200] "GET /svg/500.svg HTTP/1.1" 404 209 "https://cnews.at/cryptonews/public/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
o
[root@xas7u3 httpd]# 71.6.232.4 - - [10/Oct/2018:10:30:57 +0200] "GET / HTTP/1.1" 500 10237 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
m
> 83.215.158.176 - - [10/Oct/2018:10:37:08 +0200] "GET /cryptonews/.env HTTP/1.1" 200 836 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: syntax error near unexpected token `('
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:38:49 +0200] "GET /cryptonews/.env HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 83.215.158.176 - - [10/Oct/2018:10:38:49 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
-bash: 83.215.158.176: command not found
[root@xas7u3 httpd]# 54.204.177.47 - - [10/Oct/2018:11:38:51 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"
-bash: 54.204.177.47: command not found
[root@xas7u3 httpd]# 54.205.64.51 - - [10/Oct/2018:11:47:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36"
-bash: 54.205.64.51: command not found
[root@xas7u3 httpd]# 66.249.64.22 - - [10/Oct/2018:12:06:06 +0200] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
-bash: 66.249.64.22: command not found
[root@xas7u3 httpd]# 66.249.64.21 - - [10/Oct/2018:12:06:06 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
-bash: 66.249.64.21: command not found
[root@xas7u3 httpd]# 83.136.32.140 - - [10/Oct/2018:13:07:00 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (compatible; at-bot/1.0; +https://crawler.labs.nic.at)"
-bash: 83.136.32.140: command not found
[root@xas7u3 httpd]# 70.42.131.170 - - [10/Oct/2018:13:09:26 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)"
-bash: 70.42.131.170: command not found
[root@xas7u3 httpd]# 70.42.131.170 - - [10/Oct/2018:13:09:33 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)"
-bash: 70.42.131.170: command not found
[root@xas7u3 httpd]# 107.167.116.220 - - [10/Oct/2018:13:25:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.116.220: command not found
[root@xas7u3 httpd]# 107.167.116.220 - - [10/Oct/2018:13:28:57 +0200] "GET /CryptoNews HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.116.220: command not found
[root@xas7u3 httpd]# 107.167.116.220 - - [10/Oct/2018:13:29:05 +0200] "GET /Cindex.php HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OPR/47.3.2249.130976"
-bash: 107.167.116.220: command not found
[root@xas7u3 httpd]# 107.167.116.220 - - [10/Oct/2018:13:29:09 +0200] "GET /index.php HTTP/1.1" 404 207 "-" "Mozilla/5.0 (Linux; Android 7.0; SM-T580 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Safari/537.36 OP
> 89.144.213.163 - - [10/Oct/2018:14:03:45 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
-bash: syntax error near unexpected token `('
[root@xas7u3 httpd]# 89.144.213.163 - - [10/Oct/2018:14:03:46 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
-bash: 89.144.213.163: command not found
[root@xas7u3 httpd]# 65.154.226.100 - - [10/Oct/2018:14:28:34 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36"
-bash: 65.154.226.100: command not found
[root@xas7u3 httpd]# 138.185.165.72 - - [10/Oct/2018:15:13:58 +0200] "GET / HTTP/1.1" 404 198 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
-bash: 138.185.165.72: command not found
[root@xas7u3 httpd]# 61.216.152.135 - - [10/Oct/2018:15:51:00 +0200] "-" 408 - "-" "-"
-bash: 61.216.152.135: command not found
[root@xas7u3 httpd]# 81.109.75.212 - - [10/Oct/2018:16:08:06 +0200] "GET / HTTP/1.1" 404 198 "-" "Mo
> 81.109.75.212 - - [10/Oct/2018:16:08:06 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "http://www.cnews.at/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium
-bash: syntax error near unexpected token `('
[root@xas7u3 httpd]# 81.109.75.212 - - [10/Oct/2018:16:08:57 +0200] "-" 408 - "-" "-"

D9705996's avatar

I tried to access https://www.cnews.at/ and I get a connection refused error in chrome and HTTPS is closed.

Starting Nmap 7.01 ( https://nmap.org ) at 2018-10-10 15:39 BST
Nmap scan report for www.cnews.at (185.164.6.32)
Host is up (0.055s latency).
PORT    STATE  SERVICE
443/tcp closed https

I can reach the http:// site but getting an apache 404.

Can you do a netstat -ntlp on your webserver and show the output. I can also see in the logs that you are trying to access the url

http://cnews.at/cryptonews/public

However with the Virtualost configuration I provided the documentroot is set to

DocumentRoot "/var/www/html/CryptoNews/public"

So you should not be using the cryptonews/publlic part in your URL if you have followed my advice to the letter.

Is there anything else I should be aware of about your setup as I am assuming that you have a single server with your DNS record for www.cnews.at pointing directly to this server and it is running all of your services, web, db, etc

1 like
lara28580's avatar

I dont know why it states that I am trying to reach cryptonews/public I try it with https://www.cnews.at/

Output

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      406/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      421/sendmail: accep
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      3361/httpd
tcp6       0      0 :::33060                :::*                    LISTEN      27544/mysqld
tcp6       0      0 :::3306                 :::*                    LISTEN      27544/mysqld

Yep your assumption is true!

D9705996's avatar

There is something weird happening then because you are using https:// which use port 443 but on your server, apache is only listening on port 80.

Have you tried http://www.cnews.at ?

1 like
lara28580's avatar

If I use http it changes to https... maybe it has something to do with letsencrypt and configurations?

D9705996's avatar

Where does lets encrypt come it the equation? Where and how have you set this up? I'm sure there is something obvious I am missing here that's pretty important.

On you PC can you open a command prompt or terminal and run the commands below

ping www.cnews.at
PING www.cnews.at (185.164.6.32) 56(84) bytes of data.
64 bytes from . (185.164.6.32): icmp_seq=1 ttl=53 time=53.6 ms
64 bytes from . (185.164.6.32): icmp_seq=2 ttl=53 time=55.3 ms
64 bytes from . (185.164.6.32): icmp_seq=3 ttl=53 time=52.3 ms

nslookup www.cnews.at
Server:     127.0.1.1
Address:    127.0.1.1#53

Non-authoritative answer:
Name:   www.cnews.at
Address: 185.164.6.32

Would also be able to create a zip of your entire /etc/httpd folder (making sure you redact anything sensitive such as passwords) and provide a download link to it so I can get the full picture of how apache is configured.

1 like
lara28580's avatar

Followed this tutorial to set up my https https://www.tecmint.com/install-lets-encrypt-ssl-certificate-to-secure-apache-on-rhel-centos/

ping output:

64 bytes from xas7u3.myvserver.online (185.164.6.32): icmp_seq=26 ttl=64 time=0.071 ms
64 bytes from xas7u3.myvserver.online (185.164.6.32): icmp_seq=27 ttl=64 time=0.052 ms
64 bytes from xas7u3.myvserver.online (185.164.6.32): icmp_seq=28 ttl=64 time=0.052 ms
64 bytes from xas7u3.myvserver.online (185.164.6.32): icmp_seq=29 ttl=64 time=0.055 ms


nslookup www.cnews.at

Server:         81.19.151.2
Address:        81.19.151.2#53

Non-authoritative answer:
Name:   www.cnews.at
Address: 185.164.6.32

Download

https://mega.nz/#!FdAD2CIL!cpLmzf_bEyoUKqXCAUM5uxGgyI1oI1DU14j9QtotltU

Next

Please or to participate in this conversation.