I am working with AWS ubuntu 16.04 and apache webserver. My root folder is /var/www/html. I need to point my primary domain to project folder /var/www/html/store.
How is it possible..??
Just edit you Apache config (usually something like /etc/httpd/httpd.conf or /etc/apache/httpd.conf) and restart apache (usually service httpd restart or service apache2 restart).
Related
I create a virtual host using virtualhost.sh script (you can find it easily on GitHub), and mapped it to the root of my project folder (Yii2 Project), when I visit my virtual host, I got Apache 500 Internal Error.
Ubuntu LAMP
Thanks
The problem was in the rewrite module wasn't enabled by default when you install LAMP manually, and the .htaccess file in the root directory uses RewriteEngine...
Enable rewrite module:
sudo a2enmod rewrite
Then, you need to restart your Apache:
sudo service apache2 restart
Done.
In a new RHEL 7.5 server, I have created a var directory and within that the /www/html directory in which my website resides. When I try to access the website, I get the Apache Server Test page and mentions that the Apache server is running and I need to point to the /var/www/html directory.
How do I point the Apache Server to the /var/www/html directory?
You need to configure the available-sites and enabled-sites and remember to restart apache after changes in the config files.
Have a look at this guide:
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts#step-four-%E2%80%94-create-new-virtual-host-files
I installed gitlab-ee on my ubuntu 16.04 server hosted with AWS. I am not able to launch gitlab using the external url that is mentioned in gitlab.rb file. I have apache as default webserver. I used a subdomain as external url. But when i launch that url, it is still landing on default apache page and not using nginx to launch gitlab. How to solve this issue?
Apache and Nginx will probably try to use the same ports (80 & 443). The first started, in your case Apache, will start normally, but the second will not initialize properly as two programs can not listen together on the same ports.
Confirm with the command sudo gitlab-ctl status nginx. This will return the status of the integrated nginx instance.
If it is stopped, stop apache and then start nginx using sudo gitlab-ctl start nginx.
I would like to host a wordpress site. But I have a owncloud bitnami VM that is works very well.
Is it enough to set different domains or subdomains in apache configuration?
As you are using a Bitnami installation, you can download the Bitnami Wordpress Module: https://bitnami.com/stack/lamp/modules
After the installation, you will have both Owncloud and Wordpress. If you don't like the default configuration, you can adapt the Apache prefixes and virtual hosts to fix your needs.
I have the following host file entries on Ubuntu 14 machine running apache
127.0.0.1 localhost
10.20.32.20 library.myDNSname.org
10.20.32.20 library-intra.myDNSname.org
10.20.32.20 mtf
And also
sudo a2ensite library
sudo a2ensite mtf
sudo service apache2 restart
Now when I browse the site.. I can only access library.myDNSname.org page.
But When I
a2dissite library
I can access the mtf site.
Please note both site has been added to the sites-available.
Any Idea how I might run both site on the same server?
Thanks for input
I think it would have been more helpful if you had included your apache sites configuration and also how you are accessing your site (whether by ip or hostname).
If you are accessing your site by an ip then it will just select the default vhost which is the first vhost definition in the configuration file. For more info you can check out Apache's doc.
Please try to access the sites with hostnames and post errors in comments when you tried to access mtf site for the first time.