Yes. Say for instance a creature in melee casts a spell that requires a ranged touch attack, it would provoke two attacks of opportunity, one for the casting of the spell and one for the ranged attack in melee.
You still can make only one attack of opportunity for each opportunity that your foe gives you. For example, if you have Combat
Reflexes and a Dexterity score of 15 you can make up the three attacks
of opportunity each turn. You could make all three of them against the
same foe, provided that the foe does three different things that
provoke attacks of opportunity. (Link)
While the example from the article doesn't specify the situation I've outlined above it clearly states that though each individual opportunity does not provoke more than once, you can make multiple attacks against a creature provided they offer multiple opportunities.
It's likely both mount and rider should provoke attacks of opportunity for the mount's movement
"Mounted combat is underdetailed in Pathfinder," says Pathfinder creative director James Jacobs. "So, the more you get into it, the more you're going to have to house rule." Whether mount, rider, or both provokes attacks of opportunity for the mount's movement is, however, one of the things that'll probably be gotten into quickly by any rider astride a mount, but the Pathfinder printed rules are absolutely gray on the matter.
With that in mind, despite some hiccups, mounted combat in Pathfinder does remain largely unchanged from mounted combat in Dungeons and Dragons 3.5. Because official Pathfinder material seems less than anxious to clarify exactly how mounted combat works, this GM thinks it acceptable to look to Dungeons and Dragons 3.5 for answers.
Monster Manual author Skip Williams's Rules of the Game Web column "All about Mounts (Part Two)" on Attacks of Opportunity says
When you and our mount move, you both are subject to attacks of opportunity from your foes (your mount might be the one actually doing the moving, but you're moving as well). For example, when you and your mount leave a threatened space, you both provoke attacks of opportunity from foes that threaten that space. A foe who can make multiple attacks of opportunity in a round (for example, a foe with a high Dexterity score and the Combat Reflexes feat) can make an attack of opportunity against you and one against your mount.
As an optional rule, you might want to treat a rider and a trained war mount (or a special mount, such as a paladin's warhorse) as a single creature in battle. When the pair moves, they provoke one attack of opportunity for each foe that threatens them, not one each.
(Emphasis mine.) This reader is unaware of this bold statement being made elsewhere by any D&D 3.5e or Pathfinder designer. The topic has been discussed on the Paizo messageboards in, for example, 2010, 2013, and 2015, but no designer's offered input.
So, despite a lack of clarity by either set of printed rules on the issue, one designer believes that mount and rider both provoke attacks of opportunity for the mount's movement (unless using that designer's optional rule). As Pathfinder's rules are relatively silent on this specific score (although, as ShadowKras's fine answer demonstrates, meaning can be inferred and extracted from the existing rules), William's absolute ruling seems a reasonable one.
(It should be noted that the Rules of the Game Web columns were in some quarters poorly received and, sometimes, dismissed entirely… yet the "All about Mounts" series remains one of the few places in the whole of Third Edition—and, subsequently, Pathfinder—that reduces instead of increases the opacity and unrelenting sorrow that is mounted combat.)
"So that's what Ride-by Attack means!"
Using Williams's rules, for example, in both D&D 3.5e and Pathfinder, when the feat Ride-by Attack says, "You and your mount do not provoke an attack of opportunity from the opponent that you attack," the feat's benefit means that normally both rider and mount provoke attacks of opportunity in the given situation instead of meaning, for example, that normally attacks of opportunity are provoked by one or the other of the rider or the mount, nobody really knowing which.
Best Answer
Attack of Opportunity Targets the Mount
Here's from the effect of Attack of Opportunity:
As you've pointed out, the rider never triggers an Attack of Opportunity. Only the mount that's been commanded to take a provoking action would trigger the reaction and be targeted by the Strike.
There is a line under Mounted Combat about how attackers can target either rider or mount, but that doesn't change how Attack of Opportunity only targets the character that triggers the reaction.