I wanted to reorganize my Wamp and add a section "My Laravel projects" without adding an extra "index.php" in "www" folder.
After searching and searching, I didn't find any solutions or a folder that contains information/code of the "www" page.
How it looks right now:
How I want to organize it:
Is it possible? Thanks for your help.
You should never amend or add anything to the \wamp\www folder.
Instead, if you add a subfolder like wamp\www\laravelproject or a folder in a completely different folder structure like c:\website\project1\www and then create a Virtual Host for each project. you will then automatically see the new Virtual Host mentioned on the WAMPServer homepage.
See this post for how to easily create Apache Virtual Hosts is WAMPServer
Related
We have a SaaS product and we give websites for customers. The customers can request to have their own domain pointed to their website. At the moment we use httpd.conf file to add a VirtualHost entry pointing to the same document directory. Afterwards the database will load the website by matching the URL. We have CentOS installed.
I think this is quite risky because if there is a mistake in httpd.conf file their is potential the whole product might not work. This has actually happen. Also, we use WHM and cPanel, so when we add a mod or does a server tweak the entire httpd.conf gets rewritten having us to replace/add existing virtual host entries to the file.
I will need a solution where i can add VirtualHost entries in a separate conf file or multiple conf files and load them via httpd.conf file which should automatically pick the newly added file/files without having to restart the server.
Can someone point me in the right direction where i can achieve the above.
Cheers!
You dont need to restart, just reload
My website items has pictures which were external links. Now I have bought all the images for those item picture and place into my directory inside a picture folder. I would like to know instead of changing individual item picture link is there a way to redirect old item link to new directory. Example
Old Link:
http://www.something.com/images/item_images/item28.jpg
New Directory Name:
images/item_images
I would like to capture "something.com" and change it with my own website link. like "mywebsite.com/rest_of_the_link". How can I achieve this?
I think you can do this using .htacces file in root directory, seee:
https://my.bluehost.com/cgi/help/htaccess_redirect
http://www.htaccessredirect.net
Or maby using virtual host in apache if you have access to ssh console.
https:// httpd.apache.org /docs/2.4/vhosts/examples.html
I've setup a VPS with apache2.
I am using cloudflare for DNS management.
Now, I have my websites's files in "var/www/website" folder. Inside that, there is another folder for forum. like "var/www/website/forum" inside which there are all forum related files.
Now, suppose I have www.website.com pointing to "var/www/website"
and I also have a subdomain forum.website.com pointing to "var/www/website/forum".
What I want to do is make the files inside "var/www/website/forum" accessible via subdomain only. I don't want users to access forum via www.website.com/forum, but I want them to access it only via "forum.website.com"
What you need to do is set up what's called a virtual host. You would put your forum at /var/www/forum and website at /var/www/website.
inside /etc/apache2/sites-available, you'll need to add an additional configuration file for that site called forum.website.com.conf.
You'll then need to create a symbolic link to /etc/apache2/sites-enabled for that file so that apache sees it. From there, you reboot the server and are good to go.
Here's some documentation:
http://httpd.apache.org/docs/2.2/vhosts/
http://httpd.apache.org/docs/2.2/vhosts/examples.html
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
This may be a bit different depending on the flavor of linux, but should be about the same. Control panels like Cpanel, Plesk and WebMan can make this process a bit easier by abstracting the configuration to a web control panel.
Hope this helps you.
I'm using xampp and tried to put my yii folder and the webapp folder separate from the htdocs directory. I've followed the instructions from here:
http://el.web.id/how-to-add-virtual-directory-alias-on-apache-xampp-165
I was able to run the main page all right, but the other pages just return a not found status. May I know how to fix this? I'm not even sure if the main problem comes from Apache or from Yii. Thanks a lot.
Oh, I get it now. We'd just need to add a rewritebase on the .htaccess file that matches the alias.
RewriteBase /aliasfolder
This is for reference purposes.
I've just altered wamp to use my external hard drive to use a folder in there as the DOcumentRoot.
The problem being, as all my sites are in seperate folders ie i:/www/sitename/public_html/
the folder public_html is not showing and I cannot access it. Is there a setting somewhere maybe in the htconf so I can access these folders.
regards
Phil Jackson
If your WAMP config has an entry along these lines:
UserDir public_html
I believe you will have to remove it. If not, or if that doesn't help, we probably need some more details about your config, and exactly what is happening.