Pārlūkot izejas kodu

0196: Web Based VSCode with code-server

i12bretro 4 gadi atpakaļ
vecāks
revīzija
7abf5e2c11
1 mainītis faili ar 14 papildinājumiem un 13 dzēšanām
  1. 14 13
      0196.html

+ 14 - 13
0196.html

@@ -117,20 +117,21 @@
 	</li>
 	<li>Paste the following configuration into the existing VirtualHost
 	<p>&lt;location /code&gt;<br />
-	    RewriteEngine On<br />
-	    RewriteCond %{REQUEST_FILENAME} !-f<br />
-	    RewriteCond %{REQUEST_URI} !(.*)/$<br />
-	    RewriteRule ^(.*)$ http://%{HTTP_HOST}/code/ [L,R=301]<br />
-	&lt;location&gt;<br />
+	RewriteEngine On<br />
+	RewriteCond %{REQUEST_FILENAME} !-f<br />
+	RewriteCond %{REQUEST_URI} !(.*)/$<br />
+	RewriteRule ^(.*)$ http://%{HTTP_HOST}/code/ [L,R=301]<br />
+	&lt;/location&gt;<br />
+	<br />
 	&lt;location /code/&gt;<br />
-	    Header set X-Frame-Options ALLOWALL<br />
-	    RewriteEngine On<br />
-	    RewriteCond %{HTTP:Upgrade} =websocket [NC]<br />
-	    RewriteRule /(.*)   ws://127.0.0.1:8888/$1 [P,L]<br />
-	    ProxyPreserveHost on<br />
-	    ProxyPass http://127.0.0.1:8888/<br />
-	    ProxyPassReverse http://127.0.0.1:8888/<br />
-	&lt;location&gt;</p>
+	Header set X-Frame-Options ALLOWALL<br />
+	RewriteEngine On<br />
+	RewriteCond %{HTTP:Upgrade} =websocket [NC]<br />
+	RewriteRule /(.*) ws://127.0.0.1:8888/$1 [P,L]<br />
+	ProxyPreserveHost on<br />
+	ProxyPass http://127.0.0.1:8888/<br />
+	ProxyPassReverse http://127.0.0.1:8888/<br />
+	&lt;/location&gt;</p>
 	</li>
 	<li>Press CTRL+O, Enter, CTRL+X to write the changes to code-server.conf</li>
 	<li>Continue with the following commands in terminal: