Jump to content

Welcome to Steams Community @ Play. Win. Repeat.
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Bun venit pe Steams Community @ Play. Win. Repeat.

Bun venit pe Steams Community @ Play. Win. Repeat., pentru a avea full acces la forum te rugam sa te inregistrezi.
Ai mai multe motive pentru care sa te inregistrezi:
  • Acces la un forum structurat in parametri profesionali
  • Sansa de a da sau a primi like din partea membriilor
  • Sansa de a face parte din echipa steams
  • Alaturarea unei comunitati de viitor
Inregistreaza-te gratuit, acum!

In caz ca aveti probleme cu activarea/crearea/conectarea contului de pe forum lasati-ne un mesaj aici
Guest Message by DevFuse
 

Photo

HTTPS


  • Please log in to reply
1 reply to this topic

#1
alex

alex

    Moderator

  • Founders
  • PipPip
  • 416 posts
  • Game Nick:alex
  • Y!M:alecsutzuu
  • Country:
  • City:București
Pasul 1
# apt-get update

# apt-get install apache2 ssl-cert

# mkdir -p /etc/apache2/ssl

# make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem


Pasul 2
Decomentam portul 443 din /etc/apache2/ports.conf.
# nano /etc/apache2/ports.conf

ports.conf
# If you just change the port or add more ports here, you will likely also

# have to change the VirtualHost statement in

# /etc/apache2/sites-enabled/000-default

# This is also true if you have upgraded from before 2.2.9-3 (i.e. from

# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and

# README.Debian.gz



Listen 80



<IfModule mod_ssl.c>

	# If you add NameVirtualHost *:443 here, you will also have to change

	# the VirtualHost statement in /etc/apache2/sites-available/default-ssl

	# to <VirtualHost *:443>

	# Server Name Indication for SSL named virtual hosts is currently not

	# supported by MSIE on Windows XP.

Listen 443

</IfModule>



<IfModule mod_gnutls.c>

Listen 443

</IfModule>	



Pasul 3
Inseram 2 linii cod in fisierul httpd.conf.
[i]SSLEngine on[/i]

[i]SSLCertificateFile /etc/apache2/ssl/apache.pem[/i]


httpd.conf
#NameVirtualHost *:80

NameVirtualHost *:443



<VirtualHost *:443>

		ServerAdmin webmaster@localhost

		ServerName www.slashlinux.info

		ServerAlias slashlinux.info

		DocumentRoot /home/http-docs/slashlinux

		<Directory />

				Options FollowSymLinks

				AllowOverride None

		</Directory>

		<Directory /home/http-docs/slashlinux>

				Options Indexes FollowSymLinks MultiViews

				AllowOverride None

				Order allow,deny

				allow from all

		</Directory>



		ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

		<Directory "/usr/lib/cgi-bin">

				AllowOverride None

				Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

				Order allow,deny

				Allow from all

		</Directory>



		ErrorLog /var/log/apache2/error.log



		# Possible values include: debug, info, notice, warn, error, crit,

		# alert, emerg.

		LogLevel warn



		CustomLog /var/log/apache2/access.log combined



	Alias /doc/ "/usr/share/doc/"

	<Directory "/usr/share/doc/">

		Options Indexes MultiViews FollowSymLinks

		AllowOverride None

		Order deny,allow

		Deny from all

		Allow from 127.0.0.0/255.0.0.0 ::1/128

	</Directory>

	SSLEngine on

	SSLCertificateFile /etc/apache2/ssl/apache.pem

  

</VirtualHost>



# /etc/init.d/apache2 restart

Pasul 4
Verificam in browser https - ul

#2
«•°.? §†€y?y?...°•»

«•°.? §†€y?y?...°•»

    Member

  • Members
  • Pip
  • 4 posts
  • Game Nick:slk[x;]
  • City:UnDeva
frumos copy paste,dar e bun


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users