GithubHelp home page GithubHelp logo

Comments (5)

QuiteAFancyEmerald avatar QuiteAFancyEmerald commented on August 15, 2024

What web server are you using? I'm kinda confused on what you are asking but if you are asking how to change the directory path for where static assets are served with Holy Unblocker in app.js you can look there. :)

On your web server you would want to have a location block of some sort for /whateverpathhere with Holy Unblocker as a backend, there should be no need for having to modify Holy Unblocker directly but I'm not sure how you have this set up. In fact if you did setup Holy Unblocker correctly you could simply have a path like so: https://jejagu.com/whateverpathhere

Something like proxy_pass http://localhost:8080 (NGINX) or ProxyPass /whateverpathhere http://localhost:8080/ (Apache).

Could you provide more information about what you are doing?

from holy-unblocker.

masbenny avatar masbenny commented on August 15, 2024

i used Apache/2.4.41 (Ubuntu) Server. and default directory is : /var/www/html/

i am install like the recommendation how to setup.

I try to run the application in directory with chmod 777 : https://jejagu.com/HolyUnblockerPublic/
i got message forbidden error,

Then i try run in directory ; https://jejagu.com/HolyUnblockerPublic/views/
The app running, but cannot used proxy and get redirect to https://jejagu.com/?z

i try to change in app.js directory like this :
`//Cloudflare Attack Mode Fix

app.post('/var/www/html/HolyUnblockerPublic/views/', async(req, res) => res.send(fs.readFileSync(path.join(__dirname, 'views', 'index.html'), 'utf8')));`

but still get redirect in https://jejagu.com/?z

i want the proxy can run at default directory : https://jejagu.com/HolyUnblockerPublic/views/ or https://jejagu.com/HolyUnblockerPublic

i try other source code proxy : https://jejagu.com/proxy/ with npm install has not problem.

Then i find Holy Unblocker with nice themes and more proxy really very cool... but still make me got headeache :D

from holy-unblocker.

QuiteAFancyEmerald avatar QuiteAFancyEmerald commented on August 15, 2024

I'm not sure how you are setting this up. You are using npm or something like pm2 correct? If setup correctly, https://jejagu.com/HolyUnblockerPublic/views would simply be https://jejagu.com/HolyUnblockerPublic/. Same goes for on-site navigation.

Steps

Here is how I would interpret the correct steps for this. I would maybe use another folder for this but you can also clone Holy Unblocker in /var/www/html/.

Make sure you have Node.js installed.

$ cd /var/www/html
$ git clone https://github.com/QuiteAFancyEmerald/HolyUnblockerPublic.git
$ cd HolyUnblockerPublic
$ npm install
$ npm start

Then simply add this to httpd.conf:

ProxyPass /HolyUnblockerPublic http://localhost:8080/

Lastly be sure to have “mod_proxy” and “mod_proxy_http” modules enabled. Restart Apache and then try using Holy Unblocker.

Tell me if the issues persist even after you do this.

from holy-unblocker.

masbenny avatar masbenny commented on August 15, 2024

root@bugs12:/var/www/html/HolyUnblockerPublic# npm start

[email protected] start
node app.js

keep have the same problem....
the proxy always redirect at this url : https://jejagu.com/?z

jejagu.com is main site.

i used proxy to other directory, the result will be like : https://jejagu.com/HolyUnblockerPublic/?z

from holy-unblocker.

QuiteAFancyEmerald avatar QuiteAFancyEmerald commented on August 15, 2024

I'm closing this since the above very much confused me and no response has been given in awhile.

"i used proxy to other directory, the result will be like : https://jejagu.com/HolyUnblockerPublic/?z"

Is the above implying that the steps above did work? If so then all you need to do is rename the folder for a new path and edit httpd.conf with something like so lol

ProxyPass /newdir http://localhost:8080/

Feel free to open this again if this still is an issue :D

from holy-unblocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.