Apache virtual hosting and URL prefixes

I have a little trouble with PHP treatment after the implementation of a virtual server on apache.


This is the configuration:

Apache is installed and the document root is "C:\Program Files\Apache Group\Apache2\htdocs", which was originally as localhost as well

Virtual hosting must be put in place for "C:\WEBSITES\mysite" this directory, you will see, is outside the htdocs directory.



I edited the httpd.conf file as follows to configure a virtual server.

< VirtualHost 127.0.0.1:80 >
DocumentRoot "C:\WEBSITES\mysite.
ServerName mysite.local
< / VirtualHost >

I have not forgotten remap localhost is...
< VirtualHost 127.0.0.1:80 >
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
ServerName localhost
< / VirtualHost >


the hosts file got too twisted to include this:
127.0.0.1 localhost
127.0.0.1 mysite.local


Everything has restarted and hey presto localhost always treat PHP correctly but mysite does not work.


I'm sure I have not adjusted the url prefix. The DWeaver help files refer to an IIS configuration. Could someone inform me on what to put in this line and why. Other traps to put that in place would also kindly received


PS - port 80 is the port for listening if it helps.

Gary,

Thank you snapped. Everything works OK. My test php page now displays correctly
...... "HOORAY. HE *? *** ! WORKS WELL"which I think would be appropriate.

Best regards

MARK

Tags: Dreamweaver

Similar Questions

  • Adding multiple Apache virtual hosts

    Hi, when I want to add multiple Apache virtual hosts in XAMPP. How the code looks like. Can you please give an example with 3 virtual hosts.

    Windows Vista 32.

    Is it just adding: < VirtualHost *: 80 >

    C:/vhosts/siteA DocumentRoot

    Servername siteA

    < / VirtualHost >

    < VirtualHost *: 80 >

    C:/vhosts/siteB DocumentRoot

    Servername siteB

    < / VirtualHost >

    < VirtualHost *: 80 >

    DocumentRoot c:/vhosts/siteC

    Servername siteC

    < / VirtualHost >

    Thank you!

    It's about the size of it, I think...

    My httpd.conf file (on my external * nix box) looks like this.

    DocumentRoot/var/www/siteA

    ServerName siteA.local

    DocumentRoot/var/www/siteB

    ServerName siteB.local

    DocumentRoot/var/www/siteC

    ServerName siteC.local

  • Virtual hosts and the CF Server installation

    CF8
    FC8 (yes I know, it must really be RHEL for support)
    Apache 2.2.6


    I'm testing on a new Web server to a client. We strive to use servers virtual apache with a single instance of CF8. It will be just a few virtualhosts, not a large amount.

    After a few problems with the facilities and the connector, I was able to get CF8 running with apache. After you have configured the virtualhosts I could only get to the CFIDE directory after you add it as an alias in the virtualhost config.

    If I try to pull up a test file of cfm to a virtualhost site SEE reports file not found. Yet he will shoot to the top of the site administrator. I guess it's because the path of the /CFIDE that corresponds to the root of the main Web server.

    Can I run a single instance of CF on apache and its virtual hosts? I know that CF is running in the VirtualHosts as its a CF error screen However, it seems fair that CF is very confused when it comes to directory paths.

    I fought the issue throughout the day. I was so happy to come across your post. Unfortunately, there is no attached response. :-( I thought about her in my installation. I hope that it will be beneficial to you.

    It turns out that the problem was a permissions error. When Coldfusion was unable to read the directory of my virtual server there default wwwroot standard. To fix it I did a "chmod-r a + rX/home/jason/public_html. Then I tried loading the page again and everything was good.

  • Only one virtual host can reach the door at the same time?

    I installed ESXi 6 on a HP ProLiant DL380p Gen8 and got an operational virtual host. But it seems that no matter what I do, one host can reach the door at one point. All other grandis hosts can ping other virtual hosts and ESXi hardware, but can not get any further than that. And the same is true of outside: I can reach ESXi and a host of outside this subnet, but others are inaccessible.

    I checked that each host is configured correctly and in the same way, and they have different MAC addresses and is even went up to clone a virtual machine that has access to the network, without success.

    The upstream network hardware is not under my control, but they swear everything that should be the cause of this behavior. The ProLiant server has a Broadcom NetXtreme BCM5719, 1Gbps full-duplex. The guests are CentOS 7 x 64, with adapters vmxnet3 (but Intel E1000 adapters exhibit the same behavior). All hosts are on the same port group.

    Any ideas?

    Welcome to the community,

    It sounds as if the physical switch port is secure port, which generally limits the number of MAC addresses that are allowed to 2. Depending on the switch model, this may be named "desktop" mode. Change mode of the configuration of the port to access (or trunk) should solve the problem.

    André

  • Nested ESXi hosts and iSCSI POC

    People,

    I want to set up a proof of concept for a two host, two models NAS for my workplace. At this point, I put a host of ESXi nested using this Vcritical guide - http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/

    This made wonder. I have two virtual servers within the main install ESXi with the three hosts on the network 192.168.0.x. I then added a second NETWORK adapter on the 'server' and separated from the network iSCSI (192.168.1.x) and pointed to a simple NAS. This went well now. The problem is the hosts nested cannot access the iSCSI network.

    It's all a bit above my paygrade, but I can't work on how I can get the hosts nested on the iSCSI network. I tried to add network cards second in virtual computers running virtual hosts and their allocation to the 192.168.1.x network.

    Can anyone help to shed light? Someone you will understand my question or what I'm doing? I hope so!

    Thanks in advance

    HP

    Hello

    Your primary host see the iscsi network and connect to your nas Server?

    It should just be a case of creating a VM portgroup on this same vswitch, with settings of appropriate VLANs if necessary, assigning your esx hosts nested this portgroup vNIC. On the nested hosts themselves, you will need to implement the initiator software iscsi etc. as usual.

  • Setting up a virtual host Apache for Sites of the Complutense University of MADRID

    As the subject says: I am trying to configure virtual hosts with apache for the Sites of the Complutense University of MADRID. Now, we are trying to set up for each site of the Complutense University of MADRID, we have an ip address. Done on the browser when I see that someone typed in "http://www.myfirstsite.com" (through the magic of dns that they get routed to my server). Once they are at the level of the Apache Server I want to configure virtual hosts, so I can redirect the user to the appropriate site residing in the Complutense University of MADRID.

    Now, it is possible for me to access the sites by this "http://myservername/myfirstsite". But what I want Setup of Apache, is that when someone types in "http://www.myfirstsite.com" they see site whatever, I want them to see in the Complutense University of MADRID. But mann I just don't know what would be the document root or how could I go to get users to SEE what I want them to see. Can someone help me with this please? Thanks in advance.

    You should be able to stick with the default apache configuration where he will answer for any host name and create virtual servers for each instance with the root of the document appropriate for this instance of CS. Then you should be able to use rewrite rules to direct users to the virtual host appropriate depending on what URL they access the server with. See the documentation for Apache mod_rewrite around: http://httpd.apache.org/docs/current/rewrite/

  • Unable to connect to use Windows XP mode on a Virtual Machine, cannot share files between the Virtual Machine and host

    Because of the need to run some XP programs, I ordered Win7 Pro and installed a Virtual Machine with XP Mode.

    Managed to get it going somehow, but does not connect to my home network (can't see any other computers, which seems to be common with the host of Win 7, but here, I managed to install quick links to other computers - they will not work in XP Mode), even if the Internet connection is working perfectly.

    In addition, I can't find a way to share files with the host country, drive C appears to be different from that of the hosts with no common points (where it is currently stored beats me).

    I can access a USB key, but only at a price to make it unavailable to the host and the attempt to release his capture when running XP Mode failed.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

  • Can I use an antivirus on each of my hosts and guests at the same time when running a virtual environment on my PC?

    I have Windows 7 running on my main computer at present and that you have a virtual environment installed as an operating system on this computer very.

    I would like to know if I am able to run an internet security on my pc (Windows 7) host program and other internet security on my guest in my virtual environment operating system (pc windows 8)... at the same time.

    I ask this question because... I installed my OS of windows 8 in a virtual environment running inside my Windows 7 OS in order to familiarize yourself with the features of windows 8 and to test the compliance of windows 8 with various hardware components I use... to satisfy my curiosity before I migrate eventually completely to windows 8.

    Part of my tests would involve various software including Internet security applications.

    So the question is... I was able to save my virtual environment with an Internet security program, while having an Internet security program running in the host computer?

    PS my environments hosts and guests are not put networked with the exception of the common external drives and dvd burners. The plan being that the Internet security on my host computer program will have my analysis excluded virtual environment.

    Yes

    The systems are completely separated from each other, will not affect the different AntiVirus on another product.

    If you decide to test another Internet security program don't forget to completely remove the old version on the virtual machine

  • vCenter shows all virtual machines and the host is disconnected

    Hello

    I have a two nodes in the cluster ESXi6 U2 (recently updated to 5.5) running on hp dl380p gen8. For some reason all the virtual machines are running on host A (HA and DRS are enabled).  vCenter shows all virtual machines and host A is disconnected. Cannot connect to A host using vSphere client or web client. Cannot vMotion the VMs. Impossible to activate SSH. Connection DCUI works very well. Cannot perform any action VM

    All virtual machines are in place are running at this point. I don't want to restart the virtual machines. Can you help me please?

    Thank you

    AJ

    Frozen screen DCUI came back to life. The active SSH access, killed the running process. The host of running backs.

    See you soon,.

    AJ

  • Virtual MACHINE is unable to ping host and vice versa

    It is a very strange problem.  VMWare support tried to understand this output as Dell.  So, I just throw it to the community to see if anyone else has experienced this problem and may have a solution.  I have 3 identical Dell R720 servers.  2 work with no problem, but 1 (let's call it vm8) gave me problems since day 1.  Reference verified Dell equipment today and has updated me the BIOS, firmware and drivers on vm8, which did not solve the problem.  VMWare technicians checked each parameter network in recent weeks and currently, they are not the cause.

    VM8 have ESXi installed 5.5.0.  The Server 4 has 2 NICs with 4 ports each.  Current configuration is vmnic 0-3 is connected to our LAN, 4-5 on our DMZ and 6-7 in our SAN (iSCSI). The AP will go up and down because VM8 loses connectivity to our isolation address (gateway).

    VM8 (Mgmt IP network is 172.20.100.9) has only 1 VM (172.20.100.40). Same subnet (255.255.255.0).  .9 happens to ping expiration.40 using vmkping.  When I ping.9 de.40, the first package gets a quick response, then all following packets timeout.  According to VMWare, when you ping in (VM to host) it does not go out through the card physical network to the physical switch.  Everything is internal with vmnic and vSwitch.  When I ping my gateway (172.20.100.1), the ping is successful.  When I ping.9 from my workstation, the first packet times out, then answered the following packages.  It is the exact opposite of ping the virtual computer.

    Here's a better ventilation-

    .9 VM8 host

    .40 VM on the host VM8

    .1 gateway

    .122 workstation over LAN

    .25 vRanger connection (physical server on LAN)

    Ping

    .9 40 (100% packet loss)

    first package de.40 a.9 (75% packet loss) Gets the response, then 3 timeout

    .9 a.122 good ping (0 packet loss)

    .122 a.9 (0 packet loss) good ping

    vmkping (75% loss).9 a.25 does not appear each packet that it is sent.  But other results, can I assume first package times out.

    first package de.25 a.9 (75% loss) has expired, the following 3 got a response

    .40 a.122 good ping (0 packet loss)

    . 122. 40 (100% packet loss)

    The 3 can ping a.1 (every 20 minutes on VM8 I get a "vSphere HA agent on this host failed isolation address 172.20.100.1"

    Also, throughout the day, I get the message - "vSphere HA agent on this host cannot reach some of the management of the addresses of network of other hosts, and HA is perhaps not able to restart the virtual computer if a failure of the host is displayed."  I came to work in the morning, and all my VMS on VM8 migrated to my other 2 hosts.  My backups don't work on VM on VM8.  I use vRanger connection and when I ping connection vRanger VM8 (physical server), the first package expires and the following packages get a response.  Then, when connection vRanger goes to back up my VM, runs aground due to loss of original packet.

    These are things I've already tried.  I tested individually each physical NETWORK adapter.  I removed all the ports on the two NIC to try to isolate a specific port. All the 4 vmnic is active adapters in network properties NIC Teaming management and I moved each vmnic individually to unused to test each port.  I replaced the Cat6 cables.  I used different Dell switches and various ports of the switch.  I even swapped the switch ports that host another employee, exclude a switch port configuration problem. In addition, port security is disabled on the ports.  I upgraded ESXi 5.5.0 to a newer version.  There is a known issue with the tg3 driver, which I've updated to the latest version without problem.  I also used tg3 workaround by disabling NetQueue.  And we do not use of VLAN. Dell technical support says that it is not a hardware problem and thinks it's a matter of layer 2, but does not know where.  Basically, it's an internal problem (meaning strictly on VM8) with vSwitches or vmnic or it's a material gremlin in our Dell R720 box.

    The final recommendation of Dell is to blow the ESXi server and install a clean copy.  It's extremely frustrating and I'm out of ideas.

    Thanks in advance.

    Any luck that you have an IP address that is duplicated on your network?

  • Script of PowerCLI to measure the number of host and its virtual machine in each cluster

    Hello

    I'm trying to create a script on regular which gives an output of the host and virtual machine into a cluster of vcenter as below counties.

    Cluster:                                                      VMHost                         VM's

    Cluster01                                                     04                                  15

    cluster02                                                      02                                  35

    Simply using a sample onliner

    Get-VMHost | Select @{N = "Cl"; {E = {Get-Cluster - VMHost $_}} name, @{N = "NumVM"; E={($_ | Get - VM). County}} | Cluster of kind, name

    any ideas? Thanks in advance

    Kind regards

    Subash.

    Try this:

    Get-Cluster | Select Name, @{N="Host Count"; E={($_ | Get-VMHost).Count}},  @{N="VM Count"; E={($_ | Get-VM).Count}}
    
  • Management of VMs: Which one to use, "hosts and Clusters" or "models and virtual computers.

    Hi all

    As the subject says, when you manage virtual machines, which is better to use? Hosts and Clusters? Models and virtual computers?

    It's our facility:

    Previously we had only been using "Hosts and Clusters" manage all of our virtual machines. We organize objects of the individual within vApps and Resource Pools. We had also installation on these both parent objects permissions for who has access to what.

    Basically, we have about 12 members. Everyone has their own virtual machines that they use for training, etc. We manage centralized via AD with users and groups user access. We also have some users assigned to some hosts to maintain the level of things between the two hosts. Our license does not DRS, BTW.

    I just replaced our server vCenter in preparation for our 4.1 vSphere upgrade later this year, Yes, we are on vSphere 4.0 currently. So I went ahead and 'computers models and virtual"allowing to create user folders, gave users access and placed virtual machines of all users within these folders. (I heard recently that the use of the hosts and Clusters was semantically incorrect). Even if they have access to their folder, they cannot create a virtual machine because they cannot access a host. A computer file virtual and models can be assigned to a host?

    I didn't assign permissions to each user in order to add to each host, because I didn't want others to mess with other virtual machines. All users previously red access only, but sinc the virtual machines and templates folders are not assigned to any host, they can get in their folder to create and manage their virtual machines.

    Then, I go on this wrong all the models and virtual computers and do I just keep using our hosts and Clusters of installation above permissions groups?

    Any advice on the semantics in this would be appreciated.

    Thank you

    Johnathan

    All,

    I solved my problems.

    Check book Scott Lowes ' Mastering VMware vSphere 4 "Chapter 9, he described the use of Resource Pools to the VM group under the view of the hosts & Clusters. Using the same names as the files under VMs & models and adding the same permissions, I was able to force every user to use their own folder under VMs & templates and only their Resource Pool under hosts & Clusters. So now the two views reflect the objects of each user and their access controls are correct.

    Items to remove this Lessines:

    Use Of Resource Pools under host & Clusters to manage the default host for users.

    Files under VMs & models allows you to manage virtual machines model announcement for each user (simple view).

    Thanks for the help,

    Johnathan

  • Difference between the hosts and virtual machines

    Happy new year!

    I guess that's a stupid question, but I don't know the answer to it.

    I created pools from VM. Some jobs in the pool are hosts and some virtual machines. What is the difference between the hosts and virtual machines. I thought I could only create virtual machines, but I guess I could create hosts as well. -What happened?

    Thanks for your help.

    where does say desktops are hosts?  A host is usually referring to an ESXi server.  A virtual machine is just the guest OS running on the host computer.  A pool is a group of VMs that can extend over several hosts.

    Gunnar

  • Host virtual computer and Migration of data store

    I'm curious. I have an environment with Cisco UCS UC servers without them. Due to they are C-Series all storage is local for UC virtual machines run. I'll add some of the UCS C-Series servers and you want to move two of my current C-Series server CPU virtual machines to the new. I have the license Enterprise Plus 4.1 for all servers and execution of vCenter. The migration will be basicall move local data store to store local data as well under the name from host to host. My plan is to turn off the virtual machines and migrate both host and the data store at the same time. I have groups of ports built as follows:

    Port of VMKernerl groups:

    -Storage (for future shared storage)

    -vMotion

    -PI

    -ESXi Mgmt

    Virtual machine:

    -CPU VMS

    -Machines virtual server

    My overall question is during this migration takes place this network (or a group of Port) will be the traffic go anywhere for the move? My guess is because it is the local storage, it will use the Mgmt. ESXi

    Thank you!

    If the virtual machine will be moved to store Local data to store common data shared through 2 esxi host, then the storage shared for local storage.

    So this will be the case through network vMotion and not via the management network.

    But you can enable vmotion on management network itself. If you have configured like this then yes communication will be via the management via vmotion network IPkerenel active network.

  • Do not click on in the VM and can not move files between hosts and virtual

    Do not click on in the VM and can not move files between hosts and virtual

    Home - Windows XP x 64 Edition

    Virtual - Windows 2003 Web Edition

    -vmware.log

    ...

    sept 23 14:10:17.875: mks | Setting size 40 pile of thread to 1048576.
    sept 23 14:10:17.875: mks | Adjusting size of 41 of the stack of the thread to 1048576.
    sept 23 14:10:17.890: mks | USBGW: Writing referee op: 13 len:36
    sept 23 14:10:21.718: vcpu-0 | Unified TOOLS loop capacity requested by 'box to tools-MDN; now sending via the TECO
    sept 23 14:10:21.718: vcpu-0 | GuestRpc: Channel 7, toolbox-MDN app reviews.
    sept 23 14:10:21.718: vmx | DnDRegisterRpc: Rpc of DND already set to 1
    sept 23 14:10:21.718: vmx | CopyPasteRegisterRpc: already the value 1
    sept 23 14:10:21.890: vcpu-0 | VMXVmdb_LoadRawConfig: Loading of raw configuration
    sept 23 14:10:22.000: vmx | DnDRegisterRpc: Rpc of DND already set to 1
    sept 23 14:10:22.000: vmx | CopyPasteRegisterRpc: already the value 1
    sept 23 14:10:23.750: mks | USBGW: Writing referee op: 13 len:36
    sept 23 14:10:30.703: mks | Setting size 40 pile of thread to 1048576.
    sept 23 14:10:30.718: mks | Adjusting size of 41 of the stack of the thread to 1048576.

    ...

    Any ideas?

    Thank you

    If your license key allows, update your VMware Workstation version 7.1.4

    Otherwise, at least upgrade your VMware Workstation to version 7.0.1

    In the menu bar, help-> Check for Updates on the Web.

Maybe you are looking for

  • 50L 7333 darkens the light in dark scene

    Hello I am the owner of a 50L 7333 3D and I noticed that when there's a darker scene on TV, a person in a background dark / night or something, the overall brightness down a the duration of this shooting (2, 3 s). It is really noticeable when there i

  • Satellite M30X: Question on Config-free 4.90.57

    HelloI am the owner of a Satellite M30X, and I wanted to format and reinstall windows xp sp2... I collected the information for this... and I read in a pdf document information update of Windows XP SP2 that I should update the Config Free 4.90.57 but

  • T460S Touchpad problem

    Hi all Just got my new T460S and the touchpad is having problems when I try to use it normally. A fix for this or is this a hardware problem? Thank you!

  • write class data

    Hello I am looking for a solution to write a programming data to a class of LabVIEW.I want to create a method that reads an ini file and writes the data of the keys in the class data during execution. The method must be flexible. So I don't want to c

  • BlackBerry Smartphones low memory with OS 6

    OS 6 seems to use a much larger portion of the allocation of phone memory. With a modest set of applications and the removal of the games not used, etc. I have a basic level of about 40 MB, even if use. Daily use which rediced to 10-16 MB and less I