This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fakeauth.conf
68 lines (66 loc) · 1.87 KB
/
fakeauth.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# FakeAuth Virtual Host Configuration
## Load this into apache to run
#
<VirtualHost *:443>
ServerName authserver.mojang.com
DocumentRoot "/mojang/authserver"
SSLEngine on
SSLCertificateKeyFile "/mojang/ssl_key/private.key"
SSLCertificateFile "/mojang/ssl_key/public.cert"
</VirtualHost>
<VirtualHost *:443>
ServerName sessionserver.mojang.com
DocumentRoot "/mojang/sessionserver"
SSLEngine on
SSLCertificateKeyFile "/mojang/ssl_key/private.key"
SSLCertificateFile "/mojang/ssl_key/public.cert"
</VirtualHost>
<VirtualHost *:443>
ServerName status.mojang.com
DocumentRoot "/mojang/status"
SSLEngine on
SSLCertificateKeyFile "/mojang/ssl_key/private.key"
SSLCertificateFile "/mojang/ssl_key/public.cert"
</VirtualHost>
<VirtualHost *:443>
ServerName api.mojang.com
DocumentRoot "/mojang/api"
SSLEngine on
SSLCertificateKeyFile "/mojang/ssl_key/private.key"
SSLCertificateFile "/mojang/ssl_key/public.cert"
</VirtualHost>
<Directory "/mojang">
Options +FollowSymLinks
RewriteEngine on
Order Deny,Allow
Allow from all
Require all granted
</Directory>
<Directory "/mojang/authserver">
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^authenticate$ authenticate.php
RewriteRule ^invalidate$ invalidate.php
RewriteRule ^refresh$ refresh.php
RewriteRule ^signout$ signout.php
RewriteRule ^validate$ validate.php
</Directory>
<Directory "/mojang/sessionserver">
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^session/minecraft/hasJoined(.*)$ hasjoined.php$1
RewriteRule ^session/minecraft/join join.php
RewriteRule ^session/minecraft/profile/(.*)$ uuid2profile.php?uuid=$1
</Directory>
<Directory "/mojang/status">
Options +FollowSymLinks
RewriteEngine on
RewriteRule /status$ status.php
</Directory>
<Directory "/mojang/api">
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^profiles/minecraft name2uuid.php
RewriteRule ^minecraft/dl minecraft.7z
</Directory>