Jump to content

Hello Everyone,

 

I'm new to Apache, still I know the installation I've done works because when I go my domain website it shows the default apache page, saying that my server works.

So I've installed diaspora and configured the conf file for the virtual server. but even after I launch it I still keep getting the default webpage, nothing else.

I'm using apache 2.4

 

All the pages for this site are on /home/diaspora/diaspora/public

 

Here is the conf file for reference. Is anything wrong with it ?

 

<VirtualHost *:80>
  ServerName diasporing.ch
  ServerAlias www.diasporing.ch
  ServerRoot /home/diaspora/diaspora/public

  RedirectPermanent / https://diasporing.ch/
</VirtualHost>
<VirtualHost *:443>
 ServerName diasporing.ch
 ServerAlias www.diasporing.ch

 DocumentRoot /home/diaspora/diaspora/public

 RewriteEngine On

 RewriteCond %{HTTP_HOST} !^diasporing\.ch [NC]
 RewriteRule ^/(.*)$ https://diasporing\.ch/$1 [L,R,QSA]

 # For Camo support
 #RewriteRule ^/camo/(.*)$ balancer://camo/$1 [P,QSA,L]

 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
 RewriteRule ^/(.*)$ balancer://upstream%{REQUEST_URI} [P,QSA,L]

 <Proxy balancer://upstream>
  BalancerMember unix:///tmp/diaspora.sock|http://
 </Proxy>

 # For Camo support
 #<Proxy balancer://camo>
 #  BalancerMember http://localhost:8081
 #</Proxy>

 ProxyRequests Off
 ProxyVia On
 ProxyPreserveHost On
 RequestHeader set X_FORWARDED_PROTO https

 <Proxy *>
  # Apache < 2.4
  #Order allow,deny
  #Allow from all
  # Apache >= 2.4
  Require all granted
 </Proxy>

 <Directory /home/diaspora/diaspora/public>
  Options -MultiViews
  # Apache < 2.4
  #Allow from all
  #AllowOverride all
  # Apache >= 2.4
  Require all granted
 </Directory>

 SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/www.diasporing.ch/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/www.diasporing.ch/privkey.pem

 # Might not needed, needs for example for StartSSL to point to a local
 # copy of https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem
 # For Let's encrypt it should point to /etc/letsencrypt/live/diaspora.example.org/chain.pem
 SSLCertificateChainFile /etc/letsencrypt/live/www.diasporing.ch/chain.pem


 # Based on https://wiki.mozilla.org/Security/Server_Side_TLS - consider as global configuration
 SSLProtocol             all -SSLv2 -SSLv3
 SSLCipherSuite          ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-
AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA
:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES12
8-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128:AES256:AES:!aNULL:!eNULL:!EXPORT:!DES
:!RC4:!MD5:!PSK
 SSLHonorCipherOrder on
 SSLCompression off
</VirtualHost>

 

 

Thank you.

Link to comment
https://linustechtips.com/topic/668044-apache-serving-default-webpage/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×