You are not logged in.

#1 2018-03-02 18:17:22

Gunther74
Member
Registered: 2018-01-21
Posts: 31

[solved] Apache main page working but the virtualhost does'nt

My apache is working and running
My main config listens on port 10080 this is working.
My virtualhost listens on port 80 this does'nt work. However if i look in the access log i see a message that i have a requested a page. By this i assume that fhe file linking is correct.

My nftable got rules to allow port 80 and 10080
Allso w3m localhost tels me host not found

Here's my vhost config.

<VirtualHost *:80>
    ServerName trixke.com
    ServerAdmin foo@bar.com
    SetEnv USING_HTTPS 0

    DocumentRoot "/home/gunther/public_html"
    ErrorLog "/var/log/httpd/trixke.com-error_log"
    CustomLog "/var/log/httpd/trixke.com-access_log" common

    <Directory "/home/gunther/public_html">
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:443>
    ServerName trixke.com
    ServerAdmin foo@bar.com
    SetEnv USING_HTTPS 1
    SSLOptions +StdEnvVars
    DocumentRoot "/home/gunther/public_html"
    SSLEngine on
    SSLCertificateFile "/etc/httpd/conf/server.crt"
    SSLCertificateKeyFile "/etc/httpd/conf/server.key"
    ErrorLog "/var/log/httpd/trixke.com-error_log"
    CustomLog "/var/log/httpd/trixke.com-access_log" common

    <Directory "/home/gunther/public_html">
        Require all granted
    </directory>
</VirtualHost>

Any assistance?

Last edited by Gunther74 (2018-03-03 15:59:54)

Offline

#2 2018-03-02 20:52:51

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved] Apache main page working but the virtualhost does'nt

Does the http user have read access to the files/directories it's trying to serve?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-03-02 21:47:30

Gunther74
Member
Registered: 2018-01-21
Posts: 31

Re: [solved] Apache main page working but the virtualhost does'nt

Slithery wrote:

Does the http user have read access to the files/directories it's trying to serve?

Yes i have added the user in the group.

I forgot to mention, the virtualhost worked before on a higher port.
It stoped working but im not sure when exactely.
The log show a error about the ssl certificate aswell but that doesn't explain why the http is not working.

Offline

#4 2018-03-03 16:03:39

Gunther74
Member
Registered: 2018-01-21
Posts: 31

Re: [solved] Apache main page working but the virtualhost does'nt

I figured i have a hardware problem, ssh is lagging like hell even local sthings go weird. I tryed to restart using a usb drive the shell is freezing for 5 sec every once in a while, allso tryed different distro iso's they even dont boot up anymore.

Gone trobleshoot the hardware first then reinstall.

Offline

Board footer

Powered by FluxBB