Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have installed Liferay on the AWS server and integrated with Amazon S3. I am able to access Liferay on the server by giving localhost:8080 but I am not able to access it from my laptop by giving Hostname:8080(Public IP is not static). Can anyone tell me why I am not able to access Liferay from my laptop. Is there any other steps to follow?
If you want to access your server with hostname, you have to front your Liferay app server with http server (apache web server).
Add following into portal-ext.properties file
web.server.http.port=80
Go to LR control panel -> site -> Site-setting -> Site URL -> Virtual Host. Set your virtual host here. e.g. www.abc.com
install apache web server, if you haven't.
Add following into apache's 000-default.conf file
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
restart apache.
pass host entry on your local system.
there you go.... it's done, you don't event need to access with port 8080 either.
Hope it'll help.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
How do I set up port forwarding on my router so that I can access a local webserver outside the LAN network?
I have a local python flask application running at the following URL on a RaspberryPi, which is only accessible when on the same LAN at the following url:
192.168.1.11:5000
I'm trying to set up port forwarding on my NETGEAR Nighthawk M1 Mobile Hotspot Router by entering the following into the router form for Port Forwarding. My Public IP is 107.77.241.11 so I tried the following to no avail.
I also tried the following based on this question, which also did not work
How can I access my python flask app with port forwarding?
In my case i had to specify local details, not the public ip in case of urls
don't choose port 80, it might be blocked by another service, 5000 works ok
did you add host='0.0.0.0' in your Flask app?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm new to django, and have a small finished project I'd like to publish online. Is it possible to host my site as a github project page, or do I have to use a service like OpenShift?
You can deploy Django on a physical server or VPS (see the deployment docs). You don't have to use a a platform as a service like OpenShift or Heroku.
It is not possible to host a Django site on Github pages. Github pages is for static sites, whereas Django requires Python to generate pages dynamically.
If you do not want to use OpenShift, but instead would prefer a more python-centric environment, I just discovered PythonAnywhere today. They appear to allow you to host Django websites and you can even use it for the Django tutorial.
Honestly, that may depend on whether you can make a static site using django, because GitHub will work for you if you have a static site.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've built a Django social media-type website that will run on a Debian server using Apache. I'd like to deploy the site to my production server but restrict access so that only I can see the site while I'm checking that everything is working properly. What are some good ways to restrict access? Do you put up a front page that requires a password before getting to the actual site homepage itself? Or perhaps create a special firewall rule?
Also, what if you have two separate and distinct public websites that will be hosted on the same server? Does that change your options?
You can redirect all IP's to a static page (under construction) and just allow your IP to access the site. Below is the code which you need to put in .htaccess or in httpd.conf:
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^1\.1\.1\.1 # where 1.1.1.1 is your IP
RewriteCond %{REQUEST_URI} !^/under_construction\.html$
RewriteRule ^(.*)$ http://my-site.com/under_construction.html [R=307,L]
Put under_construction.html somewhere in your project templates and define an Alias to serve this template in apache.
This is all about your front-end webserver (Apache, Nginx or whatever) configuration. The usual solution is to password-protect your site (using basic HTTP auth), which let you test it from anywhere and let other selected peoples preview it too. And the number of site hosted on the server is totally irrelevant.
Web sites / applications / servers configuration and maintainance is a job on it's own FWIW, and there's a whole dedicated Q&A site here : https://serverfault.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Recently one SSL certificate has been removed from IIS but still available in Trusted Root when I open it via MMC. The cert seems dose not have a private key so when I export it again from mmc it creates a CRE file instead of PFX. Now how I can reinstall again the cert type (*.cer) from trusted root to ISS to make the HTTPS works again. I am not sure I can access the physical path of the certificates which are in trusted root and add them again.
I could do it via exporting the cert from MMC and then by selecting "Create Certificate Request..." in IIS. Point to the exported cert file and put the friendly name in the second text box. But the problem was that IIS could not find the Cert friendly name in Trusted Root just because the length of the friendly name was more than 40! it just prompting that "Cannot find the certificate request associated with this...". So by editing the friendly to max 40 and put the same name when you do Complete Certificate Request will solve the problem.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I admire cloudfoundry.com, especially when deploy the application to the cloudfoundry.com system , that was able to create the subdomain for app it self , make it live on internet , so we can access it directly if we connect to internet.
I've successfully install vcap on public server paas.azure4j.us .
But when I deployed an application and an output said that it was succesfully deployed and make a subdomain like 'myapp.azure4j.us' .
I understand that we can found sub domain configuration on cloud_controller.yml and deployment.json .
CMIIW
But when I access it directly from web browser ,why it doesnt work ?
So I have to set it on my /etc/hosts or add subdomain on
DNS manager of provider to access it.
My Question is , how cloudfoundry.com make them client app's subdomain directly connected to internet when them newly deploy it ??
Are you sure the DNS for azure4j.us is set up correctly for this? There seems to be a wild-card domain record set up, if I open myapp.azure4j.us, it doesn't appear to go to a VCAP instance.